mirror of
https://github.com/oxen-io/session-android.git
synced 2025-07-02 20:58:29 +00:00
Fix push challenge, Event bus needs public.
This commit is contained in:
parent
278ee79df0
commit
81930a6833
@ -63,7 +63,7 @@ public final class PushChallengeRequest {
|
||||
EventBus.getDefault().post(new PushChallengeEvent(challenge));
|
||||
}
|
||||
|
||||
private static class Request {
|
||||
public static class Request {
|
||||
|
||||
private final CountDownLatch latch;
|
||||
private final AtomicReference<String> challenge;
|
||||
|
@ -101,15 +101,4 @@ public final class PushChallengeRequestTest {
|
||||
|
||||
assertFalse(challenge.isPresent());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getPushChallengeBlocking_returns_absent_if_any_RuntimeException_is_thrown() throws IOException {
|
||||
SignalServiceAccountManager signal = mock(SignalServiceAccountManager.class);
|
||||
|
||||
doThrow(new RuntimeException()).when(signal).requestPushChallenge(any(), any());
|
||||
|
||||
Optional<String> challenge = PushChallengeRequest.getPushChallengeBlocking(signal, Optional.of("token"), "+123456", 500L);
|
||||
|
||||
assertFalse(challenge.isPresent());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user