mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:11:49 +00:00
authtest: wait longer for site config to be updated (#28119)
This commit is contained in:
parent
546c53a4c2
commit
544f1d4d18
1
dev/authtest/README.md
Normal file
1
dev/authtest/README.md
Normal 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.
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user