Skip to content

Sdk fix flaky tests#1007

Open
franco-zalamena-iterable wants to merge 4 commits intomasterfrom
SDK-fix-flaky-tests
Open

Sdk fix flaky tests#1007
franco-zalamena-iterable wants to merge 4 commits intomasterfrom
SDK-fix-flaky-tests

Conversation

@franco-zalamena-iterable
Copy link
Contributor

🔹 Jira Ticket(s) if any

✏️ Description

Removing timeouts in some tests that can be causing flakiness. Moved some unit tests that were running as instrumental tests, added better description into ignored tests

These tests use @RunWith(JUnit4) with only org.json imports and have
no Android framework dependencies. Running them as JVM unit tests
removes the emulator requirement and speeds up CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace Mockito.timeout() with shadowOf(getMainLooper()).idle() +
  verify() in IterablePushRegistrationTaskTest and IterableInAppManagerTest
- Replace Thread.sleep(1000) with shadowOf(getMainLooper()).idle() in
  IterableNotificationTest

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update 23 @ignore annotations with actionable descriptions:
- JWT tests: blocked on IterableAuthManager.executor not being injectable
- Universal link test: needs MockWebServer to stub HTTP redirect
- Database logout test: IterableTaskStorage singleton state leakage
- In-app stalling tests: Robolectric incompatible, need Espresso

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant