Skip to content

Commit d05863a

Browse files
committed
fix: unit tests
1 parent 7b57a3a commit d05863a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

disperser/apiserver/server_v2_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,14 @@ func TestV2DisperseBlob(t *testing.T) {
107107
assert.Greater(t, blobMetadata.RequestedAt, uint64(now.UnixNano()))
108108
assert.Equal(t, blobMetadata.RequestedAt, blobMetadata.UpdatedAt)
109109

110-
// Try dispersing the same blob
110+
// Try dispersing the same blob; if payment is different, blob will be considered as a differernt blob
111+
// payment will cause failure before commitment check
111112
reply, err = c.DispersalServerV2.DisperseBlob(ctx, &pbv2.DisperseBlobRequest{
112113
Data: data,
113114
BlobHeader: blobHeaderProto,
114115
})
115116
assert.Nil(t, reply)
116-
assert.ErrorContains(t, err, "blob already exists")
117+
assert.ErrorContains(t, err, "payment already exists")
117118
}
118119

119120
func TestV2DisperseBlobRequestValidation(t *testing.T) {

0 commit comments

Comments
 (0)