aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_super_block_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/volume_super_block_test.go')
-rw-r--r--weed/storage/volume_super_block_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/weed/storage/volume_super_block_test.go b/weed/storage/volume_super_block_test.go
index 13db4b194..06ad8a5d3 100644
--- a/weed/storage/volume_super_block_test.go
+++ b/weed/storage/volume_super_block_test.go
@@ -2,20 +2,22 @@ package storage
import (
"testing"
+
+ "github.com/chrislusf/seaweedfs/weed/storage/needle"
)
func TestSuperBlockReadWrite(t *testing.T) {
rp, _ := NewReplicaPlacementFromByte(byte(001))
- ttl, _ := ReadTTL("15d")
+ ttl, _ := needle.ReadTTL("15d")
s := &SuperBlock{
- version: CurrentVersion,
+ version: needle.CurrentVersion,
ReplicaPlacement: rp,
Ttl: ttl,
}
bytes := s.Bytes()
- if !(bytes[2] == 15 && bytes[3] == Day) {
+ if !(bytes[2] == 15 && bytes[3] == needle.Day) {
println("byte[2]:", bytes[2], "byte[3]:", bytes[3])
t.Fail()
}