Skip to content

Commit

Permalink
Simulate authorization after a wait of 10 seconds
Browse files Browse the repository at this point in the history
Another changed missing case from a previous PR. case doesn’t fallthrough
  • Loading branch information
didrocks authored Aug 8, 2023
1 parent f46ab4a commit d92a5eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/brokers/examplebroker/examplebroker.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ func (b *Broker) handleIsAuthorized(ctx context.Context, sessionInfo sessionInfo
// this can be cancelled to resend a challenge
select {
case <-time.After(10 * time.Second):
return responses.AuthDenied, "", nil
case <-ctx.Done():
return responses.AuthCancelled, "", nil
}
Expand Down

0 comments on commit d92a5eb

Please sign in to comment.