Skip to content

Conversation

@kropp
Copy link
Member

@kropp kropp commented Apr 29, 2024

Commonize Lifecycle tests.
These tests are heavily relied on Dispatchers.Main, which involves intricate test environment setup.

After PR is ready, I'm not going to merge it, instead I'll upstream it to androidx repository directly.

Testing

Run ./gradlew :lifecycle:lifecycle-runtime:allTests

kropp added 3 commits April 29, 2024 13:02
… any supported platform

For some platforms, surrogate Main threads are provided
some tests were minimally adjusted due to missing multi-platform APIs
@kropp kropp requested review from MatkovIvan and igordmn April 29, 2024 14:59
@@ -1,5 +1,5 @@
/*
* Copyright 2019 The Android Open Source Project
* Copyright 2024 The Android Open Source Project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert updating years in header comments

import java.util.concurrent.atomic.AtomicInteger
import androidx.kruth.assertThat
import kotlinx.atomicfu.atomic

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@kropp
Copy link
Member Author

kropp commented May 3, 2024

@kropp kropp closed this Jul 14, 2025
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.

3 participants