From 51a1dbe1fa32ae3b2653183888dbf593ccb2877d Mon Sep 17 00:00:00 2001 From: Andrey Prokopyuk Date: Wed, 28 Oct 2026 01:10:44 +0300 Subject: [PATCH] Await subscription scheduling before asserting paused job cancellation --- .../java/net/megaproxy487/ConfigSubscriptionIntegrationTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/java/net/megaproxy487/ConfigSubscriptionIntegrationTest.kt b/app/src/test/java/net/megaproxy487/ConfigSubscriptionIntegrationTest.kt index 3c6c926..c799e3b 100644 --- a/app/src/test/java/net/megaproxy487/ConfigSubscriptionIntegrationTest.kt +++ b/app/src/test/java/net/megaproxy487/ConfigSubscriptionIntegrationTest.kt @@ -487,6 +487,7 @@ class ConfigSubscriptionIntegrationTest { assertEquals(local.copy(url = remote.url, fallbackUrls = remote.fallbackUrls), next.settings) assertEquals(setOf("one"), next.ownedIds) assertFalse(store.hasPendingReconnect()) + drainScheduling() assertNull(context.getSystemService(JobScheduler::class.java).getPendingJob(SUBSCRIPTION_JOB_ID)) }