Skip to content

Commit 06859b4

Browse files
committed
Adding small delay in tests
1 parent c6c3602 commit 06859b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigml/tests/read_resource_steps.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
import time
1718

1819
from datetime import datetime
1920

@@ -46,6 +47,7 @@ def wait_until_status_code_is(code1, code2, secs, resource_info):
4647
if status['code'] == int(code2):
4748
world.errors.append(resource_info)
4849
eq_(status['code'], int(code1))
50+
time.sleep(0.1) # added to avoid synch mongo issues
4951
return i_get_the_resource(resource_info)
5052

5153

0 commit comments

Comments
 (0)