File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
database/integration_test/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1189,16 +1189,22 @@ TEST_F(FirebaseDatabaseTest, TestInfoConnected) {
1189
1189
}
1190
1190
LogDebug (" Disconnecting..." );
1191
1191
database_->GoOffline ();
1192
+ // Pause a moment to give the SDK time to realize we are disconnected.
1193
+ ProcessEvents (1000 );
1192
1194
{
1193
1195
auto disconnected = info.GetValue ();
1194
1196
WaitForCompletion (disconnected, " GetValue 3" );
1195
1197
EXPECT_EQ (disconnected.result ()->value (), false );
1196
1198
}
1197
1199
LogDebug (" Reconnecting..." );
1198
1200
database_->GoOnline ();
1201
+ // Pause a moment to give the SDK time to realize we are reconnected.
1199
1202
ProcessEvents (1000 );
1200
1203
// Force getting a value so that we reconnect to the database.
1201
1204
WaitForCompletion (ref.GetValue (), " GetValue 4 [ignored]" );
1205
+ // Pause another moment to REALLY give the SDK time to realize we are
1206
+ // reconnected.
1207
+ ProcessEvents (1000 );
1202
1208
{
1203
1209
auto reconnected = info.GetValue ();
1204
1210
WaitForCompletion (reconnected, " GetValue 5" );
You can’t perform that action at this time.
0 commit comments