Skip to content

Commit

Permalink
unit tests asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah committed Apr 29, 2024
1 parent 1da92a6 commit 60268ab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/storage/storage_handle_test.go
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand All @@ -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)
}

0 comments on commit 60268ab

Please sign in to comment.