chore: improve times of ratelimit tests (#6346)

From 5s to 130ms!
This commit is contained in:
Kyle Carberry
2023-02-25 22:01:01 +00:00
committed by GitHub
parent acf000aaa5
commit 17adfd1134
3 changed files with 27 additions and 21 deletions
+3
View File
@@ -484,6 +484,9 @@ func createAnotherUserRetry(t *testing.T, client *codersdk.Client, organizationI
other := codersdk.New(client.URL)
other.SetSessionToken(login.SessionToken)
t.Cleanup(func() {
other.HTTPClient.CloseIdleConnections()
})
if len(roles) > 0 {
// Find the roles for the org vs the site wide roles