File tree 2 files changed +3
-3
lines changed
main/java/com/example/spanner
test/java/com/example/spanner
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) {
408
408
static void readStaleData (DatabaseClient dbClient ) {
409
409
ResultSet resultSet =
410
410
dbClient
411
- .singleUse (TimestampBound .ofExactStaleness (10 , TimeUnit .SECONDS ))
411
+ .singleUse (TimestampBound .ofExactStaleness (15 , TimeUnit .SECONDS ))
412
412
.read ("Albums" ,
413
413
KeySet .all (),
414
414
Arrays .asList ("SingerId" , "AlbumId" , "MarketingBudget" ));
Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ public void testSample() throws Exception {
86
86
assertThat (out ).contains ("1 1 Total Junk" );
87
87
runSample ("addmarketingbudget" );
88
88
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
90
90
lastUpdateDataTimeInMillis = System .currentTimeMillis ();
91
- while (System .currentTimeMillis () < lastUpdateDataTimeInMillis + 11000 ) {
91
+ while (System .currentTimeMillis () < lastUpdateDataTimeInMillis + 16000 ) {
92
92
Thread .sleep (1000 );
93
93
}
94
94
runSample ("update" );
You can’t perform that action at this time.
0 commit comments