Skip to content

Commit

Permalink
test: no root chunk by replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Jun 13, 2024
1 parent af2f5b3 commit 51a0f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/file/pipeline/hashtrie/hashtrie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func TestRedundancy(t *testing.T) {
if expectedParities != parity {
t.Fatalf("want parity %d got %d", expectedParities, parity)
}
if tc.level.GetReplicaCount()+1 != int(replicaChunkCounter.replicaCount.Load()) { // +1 is the original chunk
if tc.level.GetReplicaCount() != int(replicaChunkCounter.replicaCount.Load()) {
t.Fatalf("unexpected number of replicas: want %d. Got: %d", tc.level.GetReplicaCount(), int(replicaChunkCounter.replicaCount.Load()))
}
})
Expand Down

0 comments on commit 51a0f51

Please sign in to comment.