Skip to content

Commit 74f9245

Browse files
committed
fixup! add unit test
1 parent 664895f commit 74f9245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/oauthpki/okidcpki_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func TestAzureADPKIOIDC(t *testing.T) {
149149
},
150150
},
151151
})
152-
token, err := pkiConfig.Exchange(ctx, base64.StdEncoding.EncodeToString([]byte("random-code")))
152+
_, err = pkiConfig.Exchange(ctx, base64.StdEncoding.EncodeToString([]byte("random-code")))
153153
// We hijack the request and return an error intentionally
154154
require.Error(t, err, "error expected")
155155
}

0 commit comments

Comments
 (0)