From b4218ace237cc528a102eb15a688571a585a6e6f Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Wed, 5 Apr 2023 18:08:57 +0000 Subject: [PATCH] cloud/amazon: print out asserted error in TestS3BucketDoesNotExist Add a message that prints out the error being asserted on in TestS3BucketDoesNotExist. Release note: None --- pkg/cloud/amazon/s3_storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloud/amazon/s3_storage_test.go b/pkg/cloud/amazon/s3_storage_test.go index e297d525f65f..0f1b2fbf16a4 100644 --- a/pkg/cloud/amazon/s3_storage_test.go +++ b/pkg/cloud/amazon/s3_storage_test.go @@ -449,7 +449,7 @@ func TestS3BucketDoesNotExist(t *testing.T) { _, err = s.ReadFile(ctx, "") require.Error(t, err, "") - require.True(t, errors.Is(err, cloud.ErrFileDoesNotExist)) + require.True(t, errors.Is(err, cloud.ErrFileDoesNotExist), "error is not cloud.ErrFileDoesNotExist: %v", err) } func TestAntagonisticS3Read(t *testing.T) {