Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Dec 27, 2023
1 parent d9a29cf commit a29f6fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestRoundTripPutStatusAndFullStorage(t *testing.T) {
var decoded api.GetStatusResponse
err = jsonResp.Decode(&decoded)
assert.NoError(c, err)
assert.Len(t, decoded.Replicas, 2)
assert.Len(t, decoded.Replicas, 1)
if len(decoded.Replicas) == 2 {
assert.Len(c, decoded.Replicas[0].Pieces, 1)
assert.Len(c, decoded.Replicas[1].Pieces, 1)
Expand Down Expand Up @@ -146,9 +146,9 @@ func TestRoundTripPutStatusAndFullStorage(t *testing.T) {
var decoded api.GetStatusResponse
err = jsonResp.Decode(&decoded)
assert.NoError(c, err)
assert.Len(c, decoded.Replicas, 2)
assert.Len(c, decoded.Replicas, 1)
for _, replica := range decoded.Replicas {
assert.Len(c, replica.Pieces, 1)
assert.Len(c, replica.Pieces, 4)
assert.Contains(c, []string{"published", "active"}, replica.Pieces[0].Status)
}
}, 2*time.Minute, 5*time.Second, "published deals")
Expand Down

0 comments on commit a29f6fb

Please sign in to comment.