Skip to content

Commit 967cabd

Browse files
committed
WIP
1 parent b80ec8d commit 967cabd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/integration/authorization_test.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,7 @@ func TestAuthorizationResolution(t *testing.T) {
302302
t.Fatalf("unexpected error: %v", err)
303303
}
304304

305-
// try to add Valerie to a non-existent role, looping until it is done.
306-
// If a Not Found error is raised, simply retry as this is likely due to
307-
// the role cache taking time to react
308-
if err := wait.Poll(time.Second, 2*time.Minute, func() (bool, error) {
309-
err := addValerie.AddRole()
310-
if err != nil && kapierror.IsNotFound(err) {
311-
return false, nil
312-
}
313-
return (err == nil), err
314-
}); err != nil {
305+
if err := addValerie.AddRole(); err != nil {
315306
t.Fatalf("unexpected error: %v", err)
316307
}
317308

0 commit comments

Comments
 (0)