authtest: wait longer for site config to be updated (#28119)

This commit is contained in:
Joe Chen 2021-11-29 22:26:45 +08:00 committed by GitHub
parent 546c53a4c2
commit 544f1d4d18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

1
dev/authtest/README.md Normal file
View File

@ -0,0 +1 @@
While this test suite focuses on authentication and authorization related tests, you may still refer to [`dev/gqltest`'s README](../gqltest/README.md) for background and how to run it both locally and in CI.

View File

@ -12,8 +12,6 @@ import (
)
func TestCodeIntelEndpoints(t *testing.T) {
t.Skip("Skipping this because it failed with 'ununknown commit 6ffc6072f5ed13d8e8782490705d9689cd2c546a'")
// Create a test user (authtest-user-code-intel) which is not a site admin, the
// user should receive access denied for LSIF endpoints of repositories the user
// does not have access to.
@ -91,7 +89,7 @@ func TestCodeIntelEndpoints(t *testing.T) {
// Retry because the configuration update endpoint is eventually consistent
var lastBody string
err = gqltestutil.Retry(5*time.Second, func() error {
err = gqltestutil.Retry(10*time.Second, func() error {
resp, err := userClient.Post(*baseURL+"/.api/lsif/upload?commit=6ffc6072f5ed13d8e8782490705d9689cd2c546a&repository=github.com/sgtest/private", nil)
if err != nil {
t.Fatal(err)