Skip to content

Commit

Permalink
Add sleep after insertBatch operation (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsupplee authored and jdpedrie committed Mar 3, 2017
1 parent eb141eb commit 9b06e34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/system/Datastore/RunQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public static function setUpBeforeClass()
self::$client->entity($key2, self::$data[2]),
self::$client->entity($key3, self::$data[3])
]);

// on rare occasions the queries below are returning no results when
// triggered immediately after an insert operation. the sleep here
// is intended to help alleviate this issue.
sleep(1);

self::$deletionQueue[] = self::$ancestor;
self::$deletionQueue[] = $key1;
self::$deletionQueue[] = $key2;
Expand Down

0 comments on commit 9b06e34

Please sign in to comment.