Skip to content

Commit fd4b83e

Browse files
authored
FirebaseRemoteConfigTest.java: fix flaky test: realtime_stream_listen_backgrounded_disconnects (#7220)
1 parent c76768c commit fd4b83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-config/src/test/java/com/google/firebase/remoteconfig/FirebaseRemoteConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,8 @@ public void realtime_stream_listen_backgrounded_disconnects() throws Exception {
15331533
.closeRealtimeHttpConnection(any(InputStream.class), any(InputStream.class));
15341534
when(mockHttpURLConnection.getResponseCode()).thenReturn(200);
15351535
configRealtimeHttpClientSpy.beginRealtimeHttpStream();
1536-
configRealtimeHttpClientSpy.setIsInBackground(true);
15371536
flushScheduledTasks();
1537+
configRealtimeHttpClientSpy.setIsInBackground(true);
15381538

15391539
verify(mockHttpURLConnection, times(1)).disconnect();
15401540
}

0 commit comments

Comments
 (0)