From b134210c1a520689df509314ff05500c8f4eb575 Mon Sep 17 00:00:00 2001 From: Adele Reed Date: Wed, 22 Jan 2025 11:26:55 -0800 Subject: [PATCH] Correct remaining mismatch test --- cmd/zt_sync_blob_blob_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/zt_sync_blob_blob_test.go b/cmd/zt_sync_blob_blob_test.go index 418bf2524..70ea14d8f 100644 --- a/cmd/zt_sync_blob_blob_test.go +++ b/cmd/zt_sync_blob_blob_test.go @@ -457,23 +457,23 @@ func TestSyncS2SMismatchContainerAndBlob(t *testing.T) { dstBlobURLWithSAS := scenarioHelper{}.getRawBlobURLWithSAS(a, dstContainerName, singleBlobName) raw := getDefaultSyncRawInput(srcContainerURLWithSAS.String(), dstBlobURLWithSAS.String()) - // type mismatch, we should get an error + // type mismatch, we should not get an error runSyncAndVerify(a, raw, func(err error) { - a.NotNil(err) + a.Nil(err) // validate that the right number of transfers were scheduled - a.Zero(len(mockedRPC.transfers)) + a.Equal(len(mockedRPC.transfers), len(blobList)) }) // reverse the source and destination raw = getDefaultSyncRawInput(dstBlobURLWithSAS.String(), srcContainerURLWithSAS.String()) - // type mismatch again, we should also get an error + // type mismatch again, we should also not get an error runSyncAndVerify(a, raw, func(err error) { - a.NotNil(err) + a.Nil(err) // validate that the right number of transfers were scheduled - a.Zero(len(mockedRPC.transfers)) + a.Equal(len(mockedRPC.transfers), len(blobList)) }) }