mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
validator: Fix flaky test TestServer_RefreshJWTSecretOnFileChange (#10296)
This commit is contained in:
parent
d64f6cb7a8
commit
a3f8ccd924
@ -71,6 +71,9 @@ func TestServer_RefreshJWTSecretOnFileChange(t *testing.T) {
|
||||
defer cancel()
|
||||
go srv.refreshAuthTokenFromFileChanges(ctx, authTokenPath)
|
||||
|
||||
// Wait for service to be ready.
|
||||
time.Sleep(time.Millisecond * 250)
|
||||
|
||||
// Update the auth token file with a new secret.
|
||||
require.NoError(t, CreateAuthToken(walletDir, "localhost:7500"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user