mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove useLocalStorage hook (#11712)
This commit is contained in:
@@ -327,7 +327,7 @@ func (c *DeviceAuth) AuthorizeDevice(ctx context.Context) (*codersdk.ExternalAut
|
||||
case http.StatusTooManyRequests:
|
||||
return nil, xerrors.New("rate limit hit, unable to authorize device. please try again later")
|
||||
default:
|
||||
return nil, fmt.Errorf("status_code=%d: %w", resp.StatusCode, err)
|
||||
return nil, xerrors.Errorf("status_code=%d: %w", resp.StatusCode, err)
|
||||
}
|
||||
}
|
||||
if r.ErrorDescription != "" {
|
||||
|
||||
@@ -1626,7 +1626,7 @@ func TestWorkspaceAgentExternalAuthListen(t *testing.T) {
|
||||
cancel()
|
||||
// We expect only 1
|
||||
// In a failed test, you will likely see 9, as the last one
|
||||
// gets cancelled.
|
||||
// gets canceled.
|
||||
require.Equal(t, 1, validateCalls, "validate calls duplicated on same token")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user