Skip to content

Android support#1352

Merged
mxcl merged 3 commits into
mxcl:masterfrom
marcprux:master
Jan 15, 2025
Merged

Android support#1352
mxcl merged 3 commits into
mxcl:masterfrom
marcprux:master

Conversation

@marcprux
Copy link
Copy Markdown
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
Copy Markdown
Owner

mxcl commented Jan 15, 2025

thanks! ci for android fails

@marcprux
Copy link
Copy Markdown
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
Copy Markdown
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
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