From 82525655aabaadeaf447490a27fa0a438f0a977d Mon Sep 17 00:00:00 2001 From: Ajumal Date: Fri, 30 Dec 2022 18:43:13 +0530 Subject: [PATCH] Revert "feat(Datastore): change sleep time to 1 second" This reverts commit b4c814b4a650a0cfee35256090d5fa33ed7f6911. --- Datastore/tests/System/LookupTest.php | 12 ++++++------ Datastore/tests/System/RunQueryTest.php | 6 +++--- Datastore/tests/System/RunTransactionTest.php | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Datastore/tests/System/LookupTest.php b/Datastore/tests/System/LookupTest.php index 3308131ef74f..62b6533eea8c 100644 --- a/Datastore/tests/System/LookupTest.php +++ b/Datastore/tests/System/LookupTest.php @@ -41,17 +41,17 @@ public function testLookupWithReadTime(DatastoreClient $client) $client->insert($person); self::$localDeletionQueue->add($key); - sleep(1); + sleep(2); $time = new Timestamp(['seconds' => time()]); - sleep(1); + sleep(2); $person = $client->lookup($key); $person['lastName'] = $newLastName; $client->update($person); - sleep(1); + sleep(2); // Person lastName should be the lastName AFTER update $person = $client->lookup($key); @@ -77,17 +77,17 @@ public function testLookupBatchWithReadTime(DatastoreClient $client) $client->insert($person); self::$localDeletionQueue->add($key); - sleep(1); + sleep(2); $time = new Timestamp(['seconds' => time()]); - sleep(1); + sleep(2); $person = $client->lookup($key); $person['lastName'] = $newLastName; $client->update($person); - sleep(1); + sleep(2); // Person lastName should be the lastName AFTER update $person = $client->lookupBatch([$key]); diff --git a/Datastore/tests/System/RunQueryTest.php b/Datastore/tests/System/RunQueryTest.php index 97c47de18967..06ac632a16ec 100644 --- a/Datastore/tests/System/RunQueryTest.php +++ b/Datastore/tests/System/RunQueryTest.php @@ -347,17 +347,17 @@ public function testRunQueryWithReadTime(DatastoreClient $client) $client->insert($person); self::$localDeletionQueue->add($key); - sleep(1); + sleep(2); $time = new Timestamp(['seconds' => time()]); - sleep(1); + sleep(2); $person = $client->lookup($key); $person['lastName'] = $newLastName; $client->update($person); - sleep(1); + sleep(2); $query = $client->query() ->kind($kind) diff --git a/Datastore/tests/System/RunTransactionTest.php b/Datastore/tests/System/RunTransactionTest.php index 9ae4428fe4d5..d177ccb8551e 100644 --- a/Datastore/tests/System/RunTransactionTest.php +++ b/Datastore/tests/System/RunTransactionTest.php @@ -98,11 +98,11 @@ public function testTransactionWithReadTime(DatastoreClient $client) self::$localDeletionQueue->add($ancKey); self::$localDeletionQueue->add($key); - sleep(1); + sleep(2); $time = new Timestamp(['seconds' => time()]); - sleep(1); + sleep(2); $transaction = $client->transaction(); $person = $transaction->lookup($key); @@ -110,7 +110,7 @@ public function testTransactionWithReadTime(DatastoreClient $client) $transaction->update($person); $transaction->commit(); - sleep(1); + sleep(2); $query = $client->query() ->kind($kind)