@@ -79,6 +79,7 @@ void initializationSpan() {
79
79
appInfo .labelRes = 14 ;
80
80
81
81
when (application .getApplicationContext ()).thenReturn (context );
82
+ when (application .getMainLooper ()).thenReturn (mainLooper );
82
83
when (context .getApplicationInfo ()).thenReturn (appInfo );
83
84
when (context .getString (appInfo .labelRes )).thenReturn (APP_NAME );
84
85
@@ -139,6 +140,7 @@ void spanLimitsAreConfigured() {
139
140
.setRumAccessToken ("accessToken" );
140
141
141
142
when (application .getApplicationContext ()).thenReturn (context );
143
+ when (application .getMainLooper ()).thenReturn (mainLooper );
142
144
143
145
InMemorySpanExporter testExporter = InMemorySpanExporter .create ();
144
146
AppStartupTimer startupTimer = new AppStartupTimer ();
@@ -244,6 +246,7 @@ void canCustomizeHttpSender() {
244
246
.setHttpSenderCustomizer (customizer );
245
247
246
248
when (application .getApplicationContext ()).thenReturn (context );
249
+ when (application .getMainLooper ()).thenReturn (mainLooper );
247
250
248
251
RumInitializer testInitializer =
249
252
new RumInitializer (splunkRumBuilder , application , new AppStartupTimer ());
@@ -265,6 +268,7 @@ void shouldTranslateExceptionEventsToSpanAttributes() {
265
268
.setRumAccessToken ("secret!" )
266
269
.setApplicationName ("test" );
267
270
271
+ when (application .getMainLooper ()).thenReturn (mainLooper );
268
272
when (application .getApplicationContext ()).thenReturn (context );
269
273
270
274
AppStartupTimer appStartupTimer = new AppStartupTimer ();
0 commit comments