Skip to content

Commit dba7b37

Browse files
committed
fix test (add type conversion)
1 parent 41b2b64 commit dba7b37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/auth/auth_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestKeycloakClient_GetToken(t *testing.T) {
5252
// the other fields are also required in real scenario, but omit here for brevity
5353
})
5454
gotToken, err := client.GetToken(context.Background())
55-
assert.Greater(t, serverCallCount.Load(), 0, "server was not called")
55+
assert.Greater(t, serverCallCount.Load(), int32(0), "server was not called")
5656

5757
if tt.wantErr {
5858
require.Error(t, err)

pkg/notifications/notification_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func TestClient_CreateNotification(t *testing.T) {
130130
err := client.CreateNotification(context.Background(), tt.notification)
131131

132132
if !tt.serverErrors.authenticationFail {
133-
assert.Greater(t, serverCallCount.Load(), 0, "notification server was not called")
133+
assert.Greater(t, serverCallCount.Load(), int32(0), "notification server was not called")
134134
}
135135

136136
if tt.wantErr {

0 commit comments

Comments
 (0)