From 60268ab68771de7a567b612b24fa25defc5f7ccc Mon Sep 17 00:00:00 2001 From: Tulsi Shah Date: Mon, 29 Apr 2024 10:08:42 +0000 Subject: [PATCH] unit tests asserts --- internal/storage/storage_handle_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/storage/storage_handle_test.go b/internal/storage/storage_handle_test.go index 59ef30c171..f1abf35277 100644 --- a/internal/storage/storage_handle_test.go +++ b/internal/storage/storage_handle_test.go @@ -25,7 +25,6 @@ import ( "github.com/googlecloudplatform/gcsfuse/v2/internal/storage/storageutil" "github.com/jacobsa/oglematchers" . "github.com/jacobsa/ogletest" - "github.com/stretchr/testify/assert" ) const invalidBucketName string = "will-not-be-present-in-fake-server" @@ -231,8 +230,8 @@ func TestCreateGRPCControlClientHandleWithEnableHNSTrue(t *testing.T) { controlClient, err := createGRPCControlClientHandle(context.Background(), &sc) - assert.Equal(t, nil, err) - assert.NotNil(t, controlClient) + AssertEq(nil, err) + AssertEq(nil, controlClient) } func TestCreateStorageHandleWithEnableHNSTrue(t *testing.T) { @@ -241,6 +240,6 @@ func TestCreateStorageHandleWithEnableHNSTrue(t *testing.T) { sh, err := NewStorageHandle(context.Background(), sc) - assert.Nil(t, err) - assert.NotNil(t, sh) + AssertEq(nil, err) + AssertNe(nil, sh) }