@@ -183,6 +183,7 @@ func TestCreateOrUpdateKeyWaitHandler(t *testing.T) {
183183 handler := CreateOrUpdateKeyWaitHandler (ctx , client , testProject , testRegion , testKeyRingId , testKeyId )
184184 got , err := handler .SetTimeout (1 * time .Second ).
185185 SetThrottle (250 * time .Millisecond ).
186+ SetSleepBeforeWait (50 * time .Millisecond ).
186187 WaitWithContext (ctx )
187188
188189 if (err != nil ) != tt .wantErr {
@@ -267,6 +268,7 @@ func TestDeleteKeyWaitHandler(t *testing.T) {
267268 handler := DeleteKeyWaitHandler (ctx , client , testProject , testRegion , testKeyRingId , testKeyId )
268269 _ , err := handler .SetTimeout (1 * time .Second ).
269270 SetThrottle (250 * time .Millisecond ).
271+ SetSleepBeforeWait (50 * time .Millisecond ).
270272 WaitWithContext (ctx )
271273
272274 if tt .wantErr != (err != nil ) {
@@ -347,6 +349,7 @@ func TestEnableKeyVersionWaitHandler(t *testing.T) {
347349 handler := EnableKeyVersionWaitHandler (ctx , client , testProject , testRegion , testKeyRingId , testKeyId , 1 )
348350 got , err := handler .SetTimeout (1 * time .Second ).
349351 SetThrottle (250 * time .Millisecond ).
352+ SetSleepBeforeWait (50 * time .Millisecond ).
350353 WaitWithContext (ctx )
351354
352355 if (err != nil ) != tt .wantErr {
@@ -431,6 +434,7 @@ func TestDisableKeyVersionWaitHandler(t *testing.T) {
431434 handler := DisableKeyVersionWaitHandler (ctx , client , testProject , testRegion , testKeyRingId , testKeyId , 1 )
432435 _ , err := handler .SetTimeout (1 * time .Second ).
433436 SetThrottle (250 * time .Millisecond ).
437+ SetSleepBeforeWait (50 * time .Millisecond ).
434438 WaitWithContext (ctx )
435439
436440 if tt .wantErr != (err != nil ) {
@@ -511,6 +515,7 @@ func TestCreateWrappingWaitHandler(t *testing.T) {
511515 handler := CreateWrappingKeyWaitHandler (ctx , client , testProject , testRegion , testKeyRingId , testKeyId )
512516 got , err := handler .SetTimeout (1 * time .Second ).
513517 SetThrottle (250 * time .Millisecond ).
518+ SetSleepBeforeWait (50 * time .Millisecond ).
514519 WaitWithContext (ctx )
515520
516521 if (err != nil ) != tt .wantErr {
0 commit comments