mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
storage: the fresh-store test asserts no pass exists, not only none running
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ae32cba3d
commit
ecc3a1fd05
1 file changed
+5
-2
@@ -294,8 +294,11 @@ func TestAFreshStoreAtLevelOneRunsNoUpgradePass(t *testing.T) {
|
||||
withV11Format(t)
|
||||
withoutPassWait(t)
|
||||
s, l, _ := lazyFreshVolume(t)
|
||||
if st := l.Stats().UpgradePass; st.State == "running" {
|
||||
t.Fatalf("a fresh store's upgrade pass: %+v, want none (nothing unknown to compare)", st)
|
||||
l.stMu.Lock()
|
||||
pass := l.pass
|
||||
l.stMu.Unlock()
|
||||
if pass != nil {
|
||||
t.Fatalf("a fresh store started an upgrade pass (status %+v); want none: nothing unknown to compare", l.Stats().UpgradePass)
|
||||
}
|
||||
if _, err := s.Write(1, makeBlock(ctBlockSize, 0xF1)); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in new issue
Block a user