aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/idx_binary_search_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/idx_binary_search_test.go')
-rw-r--r--weed/storage/idx_binary_search_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/storage/idx_binary_search_test.go b/weed/storage/idx_binary_search_test.go
index 48f48852e..07eacb898 100644
--- a/weed/storage/idx_binary_search_test.go
+++ b/weed/storage/idx_binary_search_test.go
@@ -1,19 +1,20 @@
package storage
import (
+ "os"
+ "testing"
+
"github.com/seaweedfs/seaweedfs/weed/storage/idx"
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
"github.com/seaweedfs/seaweedfs/weed/storage/super_block"
"github.com/seaweedfs/seaweedfs/weed/storage/types"
"github.com/stretchr/testify/assert"
- "os"
- "testing"
)
func TestFirstInvalidIndex(t *testing.T) {
dir := t.TempDir()
- v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, 0)
+ v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, 0, 0)
if err != nil {
t.Fatalf("volume creation: %v", err)
}