mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-21 22:12:36 +00:00
volume: cover stamp bootstrap for pre-stamp dirs in test
This commit is contained in:
@@ -81,6 +81,11 @@ func TestVidStampBootstrapFromVolumes(t *testing.T) {
|
||||
}
|
||||
store.Close()
|
||||
|
||||
// upgrading a pre-stamp dir: volumes exist but no stamp yet
|
||||
if err := os.Remove(filepath.Join(dir, vidStampFileName)); err != nil {
|
||||
t.Fatalf("remove stamp: %v", err)
|
||||
}
|
||||
|
||||
restarted := newVidStampStore(t, dir)
|
||||
defer restarted.Close()
|
||||
if got := restarted.MaxVolumeIdSeen(); got != needle.VolumeId(17) {
|
||||
|
||||
Reference in New Issue
Block a user