Skip to content

Commit

Permalink
Updated auth_test GetDeviceCode func call
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Jul 26, 2024
1 parent 9d902ce commit ec8c9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestGetDeviceCode(t *testing.T) {
u := url.URL{Scheme: "https", Host: parsedURL.Host, Path: "/oauth/device/code"}
credentials.DeviceCodeEndpoint = u.String()

state, err := GetDeviceCode(context.Background(), ts.Client(), []string{})
state, err := GetDeviceCode(context.Background(), ts.Client(), []string{}, "")

assert.NoError(t, err)
assert.Equal(t, "device-code-here", state.DeviceCode)
Expand Down Expand Up @@ -180,7 +180,7 @@ func TestGetDeviceCode(t *testing.T) {
u := url.URL{Scheme: "https", Host: parsedURL.Host, Path: "/oauth/device/code"}
credentials.DeviceCodeEndpoint = u.String()

_, err = GetDeviceCode(context.Background(), ts.Client(), []string{})
_, err = GetDeviceCode(context.Background(), ts.Client(), []string{}, "")

assert.EqualError(t, err, testCase.expect)
})
Expand Down

0 comments on commit ec8c9d1

Please sign in to comment.