File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/example/spanner
test/java/com/example/spanner Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ static void readOnlyTransaction(DatabaseClient dbClient) {
408408 static void readStaleData (DatabaseClient dbClient ) {
409409 ResultSet resultSet =
410410 dbClient
411- .singleUse (TimestampBound .ofExactStaleness (10 , TimeUnit .SECONDS ))
411+ .singleUse (TimestampBound .ofExactStaleness (15 , TimeUnit .SECONDS ))
412412 .read ("Albums" ,
413413 KeySet .all (),
414414 Arrays .asList ("SingerId" , "AlbumId" , "MarketingBudget" ));
Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ public void testSample() throws Exception {
8686 assertThat (out ).contains ("1 1 Total Junk" );
8787 runSample ("addmarketingbudget" );
8888
89- // wait for 10 seconds to elapse and then run an update, and query for stale data
89+ // wait for 15 seconds to elapse and then run an update, and query for stale data
9090 lastUpdateDataTimeInMillis = System .currentTimeMillis ();
91- while (System .currentTimeMillis () < lastUpdateDataTimeInMillis + 11000 ) {
91+ while (System .currentTimeMillis () < lastUpdateDataTimeInMillis + 16000 ) {
9292 Thread .sleep (1000 );
9393 }
9494 runSample ("update" );
You can’t perform that action at this time.
0 commit comments