File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ func TestExternalAuthCallback(t *testing.T) {
556
556
// If the validation URL gives a non-OK status code, this
557
557
// should be treated as an internal server error.
558
558
srv .Config .Handler = http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
559
- w .WriteHeader (http .StatusForbidden )
559
+ w .WriteHeader (http .StatusBadRequest )
560
560
w .Write ([]byte ("Something went wrong!" ))
561
561
})
562
562
_ , err = agentClient .ExternalAuth (ctx , agentsdk.ExternalAuthRequest {
@@ -565,7 +565,7 @@ func TestExternalAuthCallback(t *testing.T) {
565
565
var apiError * codersdk.Error
566
566
require .ErrorAs (t , err , & apiError )
567
567
require .Equal (t , http .StatusInternalServerError , apiError .StatusCode ())
568
- require .Equal (t , "validate external auth token: status 403 : body: Something went wrong!" , apiError .Detail )
568
+ require .Equal (t , "validate external auth token: status 400 : body: Something went wrong!" , apiError .Detail )
569
569
})
570
570
571
571
t .Run ("ExpiredNoRefresh" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments