Skip to content

Commit

Permalink
Correct remaining mismatch test
Browse files Browse the repository at this point in the history
  • Loading branch information
adreed-msft committed Jan 22, 2025
1 parent 3480a54 commit b134210
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/zt_sync_blob_blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}

Expand Down

0 comments on commit b134210

Please sign in to comment.