mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
test(chunkstore): compare reclaimed manifest keys in binding form
This commit is contained in:
1 parent
6adc39432a
commit
cf4f682ac7
1 file changed
+2
-1
@@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"path"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -140,7 +141,7 @@ func TestIntegration_DeleteVolumeThenGC(t *testing.T) {
|
||||
want := []string{"w1:chunks/e1/c0/a", "w2:chunks/e1/c2/d"}
|
||||
for _, h := range []storage.ChunkHead{h1, h3} {
|
||||
for _, segment := range h.Segments {
|
||||
want = append(want, segment.Owner+":"+segment.Key)
|
||||
want = append(want, segment.Owner+":"+strings.TrimPrefix(segment.Key, "@"+segment.Owner+"/"))
|
||||
}
|
||||
}
|
||||
sort.Strings(want)
|
||||
|
||||
Reference in new issue
Block a user