Skip to content

Commit

Permalink
stores: add partial slab to TestUnhealthySlabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jul 31, 2024
1 parent 01ea3ff commit 6363ba7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autopilot/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ OUTER:
case jobs <- job{slab, i, len(toMigrate), set, b}:
}
}

// all slabs migrated
return
}
}

Expand Down
6 changes: 6 additions & 0 deletions stores/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,12 @@ func TestUnhealthySlabs(t *testing.T) {
t.Fatal(err)
}

// add a partial slab
_, _, err = ss.AddPartialSlab(context.Background(), []byte{1, 2, 3}, 1, 3, testContractSet)
if err != nil {
t.Fatal(err)
}

if err := ss.RefreshHealth(context.Background()); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 6363ba7

Please sign in to comment.