Skip to content

Commit

Permalink
Remove retries during system tests for group.
Browse files Browse the repository at this point in the history
  • Loading branch information
supriyagarg committed Aug 3, 2016
1 parent d205cec commit 5dfa1be
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions system_tests/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import time

import unittest2

from gcloud import _helpers
Expand Down Expand Up @@ -189,16 +187,7 @@ def setUp(self):

def tearDown(self):
for group in self.to_delete:
backoff_intervals = [1, 2, 4, 8]
while True:
try:
group.delete()
break
except NotFound:
if backoff_intervals:
time.sleep(backoff_intervals.pop(0))
else:
raise
group.delete()

def test_create_group(self):
client = monitoring.Client()
Expand Down

0 comments on commit 5dfa1be

Please sign in to comment.