Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit a543766

Browse files
author
Jon Wayne Parrott
committed
Adding sleep in search test to account for eventual consistency (#89)
1 parent ed73881 commit a543766

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/e2e/tests/search_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import time
16+
1517
from google.appengine.api import search
1618
import pytest
1719

@@ -27,6 +29,10 @@ def index():
2729
value='hello world'),
2830
])
2931
index.put(doc)
32+
33+
# Search is eventually consistent, so sleep for 2 seconds before continuing
34+
time.sleep(2)
35+
3036
return index
3137

3238

0 commit comments

Comments
 (0)