Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android support #1352

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Android support #1352

merged 3 commits into from
Jan 15, 2025

Conversation

marcprux
Copy link
Contributor

@marcprux marcprux commented Jan 5, 2025

This PR adds support for Android, as well as a CI action to run the unit tests against an Android emulator.

@mxcl
Copy link
Owner

mxcl commented Jan 15, 2025

thanks! ci for android fails

@marcprux
Copy link
Contributor Author

ci for android fails

The failure is:

/home/runner/work/PromiseKit/PromiseKit/Tests/CorePromise/AfterTests.swift:40: error: AfterTests.testPositive : Asynchronous wait failed - Exceeded timeout of 2.0 seconds, with unfulfilled expectations: 

It passed in my fork's CI run, and I suspect that if you re-ran the workflow once or twice that it would work for you. I think the problem is just that the Android emulator is slow, so timing tests like these need a little more padding.

I could bump up the test tolerance (perhaps just for Android) in places like https://github.com/mxcl/PromiseKit/blob/master/Tests/CorePromise/AfterTests.swift#L40C29-L40C36 if you think that would be OK?

@mxcl
Copy link
Owner

mxcl commented Jan 15, 2025

Oh ok, that's fine. I'll merge and fix the CI stuff separately.

@mxcl mxcl merged commit 7edbcaf into mxcl:master Jan 15, 2025
3 of 15 checks passed
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.

2 participants