Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 18, 2024
1 parent 7b57a3a commit d05863a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions disperser/apiserver/server_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ func TestV2DisperseBlob(t *testing.T) {
assert.Greater(t, blobMetadata.RequestedAt, uint64(now.UnixNano()))
assert.Equal(t, blobMetadata.RequestedAt, blobMetadata.UpdatedAt)

// Try dispersing the same blob
// Try dispersing the same blob; if payment is different, blob will be considered as a differernt blob
// payment will cause failure before commitment check
reply, err = c.DispersalServerV2.DisperseBlob(ctx, &pbv2.DisperseBlobRequest{
Data: data,
BlobHeader: blobHeaderProto,
})
assert.Nil(t, reply)
assert.ErrorContains(t, err, "blob already exists")
assert.ErrorContains(t, err, "payment already exists")
}

func TestV2DisperseBlobRequestValidation(t *testing.T) {
Expand Down

0 comments on commit d05863a

Please sign in to comment.