Skip to content

Commit

Permalink
Wait after scan failure during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Apr 22, 2024
1 parent 3c1a0ae commit f6b3296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integ/value_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import numpy as np
import helper
import config
import time


class ValueTest(unittest.TestCase):
Expand Down Expand Up @@ -47,6 +48,7 @@ def checkVerbose(self, dset_id, headers=None, expected=None):
rsp = self.session.put(req, params=params, headers=headers)
if (rsp.status_code == 503):
# Retry
time.sleep(3)
continue
# should get a NO_CONTENT code
self.assertEqual(rsp.status_code, 204)
Expand Down

0 comments on commit f6b3296

Please sign in to comment.