Timing issue in test_query()

Description

The new query backend is eventually consistent so we're getting intermittent error in Python client integration test.

Looking at test (integration/test_query.py(test_query)), we create folders and check for number of folders in a tight loop, which would cause the failure.

Note: There is a comment at the begining of the test '## TODO: replace this test with the one below when query() is replaced'. Check with Larsson to see if the test should just be deleted.

Environment

py-1.6 vs 181.0-x

Activity

Show:
Ziming Dong
May 30, 2017, 8:05 PM

They are failing again. Instead of sleep(), I should wait for the query result to update in a while loop and timeout after ~20 seconds.

Ziming Dong
May 31, 2017, 6:17 PM

Fixed this in because It covers more integration tests with query timing issues

Duplicate

Assignee

Ziming Dong

Reporter

Xavier Schildwachter

Labels

None

Validator

Xavier Schildwachter

Development Area

None

Release Version History

None

Components

Fix versions

Affects versions

Priority

Major
Configure