Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
e2e: change retry to 1 for testEtcdRestoreOperatorForS3Source (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanminshi authored and hongchaodeng committed Jan 22, 2018
1 parent 0f56ce6 commit 4bc99c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/e2eslow/backup_restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ func testEtcdRestoreOperatorForS3Source(t *testing.T, clusterName, s3Path string
}
}()

// Verify the EtcdRestore CR status "succeeded=true". In practice the time taken to update is 1 second.
// Note: The restore-operator currently waits 60 seconds after deleting the EtcdClusterRef so the timeout should account for that
err = retryutil.Retry(10*time.Second, 7, func() (bool, error) {
err = retryutil.Retry(10*time.Second, 1, func() (bool, error) {
er, err := f.CRClient.EtcdV1beta2().EtcdRestores(f.Namespace).Get(er.Name, metav1.GetOptions{})
if err != nil {
return false, fmt.Errorf("failed to retrieve restore CR: %v", err)
Expand Down

0 comments on commit 4bc99c8

Please sign in to comment.