mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-09 23:48:00 +00:00
Replace usages of deprecated funcs from the wait pkg
This commit is contained in:
@@ -486,7 +486,7 @@ func TestController(t *testing.T) {
|
||||
authenticated bool
|
||||
err error
|
||||
)
|
||||
_ = wait.PollImmediate(10*time.Millisecond, 5*time.Second, func() (bool, error) {
|
||||
_ = wait.PollUntilContextTimeout(context.Background(), 10*time.Millisecond, 5*time.Second, true, func(ctx context.Context) (bool, error) {
|
||||
rsp, authenticated, err = cachedAuthenticator.AuthenticateToken(context.Background(), jwt)
|
||||
return !isNotInitialized(err), nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user