@@ -182,8 +182,11 @@ class FxaAccountManagerTest {
182
182
verify(constellation).ensureCapabilitiesAsync(listOf (DeviceCapability .SEND_TAB ))
183
183
verify(constellation, never()).initDeviceAsync(any(), any(), any())
184
184
185
- // Assert that periodic account refresh started.
186
- verify(constellation).startPeriodicRefresh()
185
+ // Assert that periodic account refresh never started.
186
+ // See https://github.com/mozilla-mobile/android-components/issues/3433
187
+ verify(constellation, never()).startPeriodicRefresh()
188
+ // Assert that we cancel any existing periodic jobs.
189
+ verify(constellation).stopPeriodicRefresh()
187
190
188
191
// Assert that persistence callback is interacting with the storage layer.
189
192
account.persistenceCallback!! .persist(" test" )
@@ -218,8 +221,9 @@ class FxaAccountManagerTest {
218
221
verify(constellation).ensureCapabilitiesAsync(listOf (DeviceCapability .SEND_TAB ))
219
222
verify(constellation, never()).initDeviceAsync(any(), any(), any())
220
223
221
- // Assert that periodic account refresh started.
222
- verify(constellation).startPeriodicRefresh()
224
+ // Assert that periodic account refresh never started.
225
+ // See https://github.com/mozilla-mobile/android-components/issues/3433
226
+ verify(constellation, never()).startPeriodicRefresh()
223
227
224
228
// Assert that persistence callback is interacting with the storage layer.
225
229
account.persistenceCallback!! .persist(" test" )
@@ -339,8 +343,9 @@ class FxaAccountManagerTest {
339
343
// Assert that persistence callback is set.
340
344
assertNotNull(account.persistenceCallback)
341
345
342
- // Assert that periodic account refresh started after finishing auth.
343
- verify(constellation).startPeriodicRefresh()
346
+ // Assert that periodic account refresh is never started after finishing auth.
347
+ // See https://github.com/mozilla-mobile/android-components/issues/3433
348
+ verify(constellation, never()).startPeriodicRefresh()
344
349
345
350
// Assert that initDevice fired, but not ensureCapabilities (since we're initing a new account).
346
351
verify(constellation).initDeviceAsync(any(), any(), eq(listOf (DeviceCapability .SEND_TAB )))
0 commit comments