From f2e8ad62411a2ca7633dfd6d8bb340c85f1b75b9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 11 Jul 2020 06:35:54 -0700 Subject: [PATCH] refactoring --- test/{ => data}/sample.idx | Bin weed/storage/needle_map/compact_map_perf_test.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{ => data}/sample.idx (100%) diff --git a/test/sample.idx b/test/data/sample.idx similarity index 100% rename from test/sample.idx rename to test/data/sample.idx diff --git a/weed/storage/needle_map/compact_map_perf_test.go b/weed/storage/needle_map/compact_map_perf_test.go index 3a3648641..cce1f9490 100644 --- a/weed/storage/needle_map/compact_map_perf_test.go +++ b/weed/storage/needle_map/compact_map_perf_test.go @@ -32,7 +32,7 @@ func TestMemoryUsage(t *testing.T) { startTime := time.Now() for i := 0; i < 10; i++ { - indexFile, ie := os.OpenFile("../../../test/sample.idx", os.O_RDWR|os.O_RDONLY, 0644) + indexFile, ie := os.OpenFile("../../../test/data/sample.idx", os.O_RDWR|os.O_RDONLY, 0644) if ie != nil { log.Fatalln(ie) }