Skip to content

Commit d5c95bb

Browse files
Update test to remove spy.
1 parent 2e5fd40 commit d5c95bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,11 +1568,10 @@ public void realtime_stream_listen_get_inputstream_fail() throws Exception {
15681568

15691569
@Test
15701570
public void realtime_stream_listen_get_inputstream_exception_handling() throws Exception {
1571-
ConfigAutoFetch configAutoFetchSpy = spy(configAutoFetch);
15721571
InputStream inputStream = mock(InputStream.class);
15731572
when(mockHttpURLConnection.getResponseCode()).thenReturn(200);
15741573
when(mockHttpURLConnection.getInputStream()).thenThrow(IOException.class);
1575-
configAutoFetchSpy.listenForNotifications();
1574+
configAutoFetch.listenForNotifications();
15761575

15771576
verify(mockHttpURLConnection, times(1)).getInputStream();
15781577
verify(inputStream, never()).close();

0 commit comments

Comments
 (0)