Skip to content

Commit f37408d

Browse files
committed
Fix unit test
1 parent 09a9dec commit f37408d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/session/SessionManager.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.util.Objects;
3030
import java.util.Set;
3131
import java.util.UUID;
32-
import java.util.concurrent.Future;
3332

3433
/** Session manager to generate sessionIDs and broadcast to the application. */
3534
@Keep // Needed because of b/117526359.
@@ -43,7 +42,6 @@ public class SessionManager {
4342
private final Set<WeakReference<SessionAwareObject>> clients = new HashSet<>();
4443

4544
private PerfSession perfSession;
46-
private Future syncInitFuture;
4745

4846
/** Returns the singleton instance of SessionManager. */
4947
public static SessionManager getInstance() {
@@ -169,9 +167,4 @@ private void startOrStopCollectingGauges(ApplicationProcessState appState) {
169167
public void setPerfSession(PerfSession perfSession) {
170168
this.perfSession = perfSession;
171169
}
172-
173-
@VisibleForTesting
174-
public Future getSyncInitFuture() {
175-
return this.syncInitFuture;
176-
}
177170
}

firebase-perf/src/test/java/com/google/firebase/perf/session/SessionManagerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public void setApplicationContext_initializeGaugeMetadataManager()
7878
new SessionManager(mockGaugeManager, mockPerfSession, mockAppStateMonitor);
7979
testSessionManager.setApplicationContext(mockApplicationContext);
8080

81-
testSessionManager.getSyncInitFuture().get();
8281
inOrder.verify(mockGaugeManager).initializeGaugeMetadataManager(any());
8382
}
8483

0 commit comments

Comments
 (0)