From 544f1d4d184ee5a977a3b64590fa33628214c858 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Mon, 29 Nov 2021 22:26:45 +0800 Subject: [PATCH] authtest: wait longer for site config to be updated (#28119) --- dev/authtest/README.md | 1 + dev/authtest/code_intel_test.go | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 dev/authtest/README.md diff --git a/dev/authtest/README.md b/dev/authtest/README.md new file mode 100644 index 00000000000..99dcba3c331 --- /dev/null +++ b/dev/authtest/README.md @@ -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. diff --git a/dev/authtest/code_intel_test.go b/dev/authtest/code_intel_test.go index 8d59dcfca33..9f4cd3445c8 100644 --- a/dev/authtest/code_intel_test.go +++ b/dev/authtest/code_intel_test.go @@ -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)