From d05863a20c6b14cfdd892176a65ef33b61358675 Mon Sep 17 00:00:00 2001 From: hopeyen <60078528+hopeyen@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:44:14 +0000 Subject: [PATCH] fix: unit tests --- disperser/apiserver/server_v2_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/disperser/apiserver/server_v2_test.go b/disperser/apiserver/server_v2_test.go index 265280611..367d3c9bb 100644 --- a/disperser/apiserver/server_v2_test.go +++ b/disperser/apiserver/server_v2_test.go @@ -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) {