Skip to content

Commit f326cd1

Browse files
authored
test: Extend the sleep time to allow save to work (#1142)
* Extend the sleep time to allow save to work The sleep time should be increased to allow the save time to vary significantly from the variable savedTime so that any time different between the client and the server’s clock is negligible compared to the sleep time. * test: Extend the sleep time to allow save to work * run linter * Reapply sleep commit that was there first
1 parent e6b8ef7 commit f326cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system-test/datastore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ async.each(
499499
const path = ['Post', 'post1'];
500500
const postKey = datastore.key(path);
501501
await datastore.save({key: postKey, data: post});
502-
await sleep(1000);
502+
await sleep(10000);
503503
const savedTime = Date.now();
504504
await sleep(1000);
505505
// Save new post2 data, but then verify the timestamp read has post1 data

0 commit comments

Comments
 (0)