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

make canMessage method accessible on the Client class #200

Merged
merged 8 commits into from
Nov 29, 2023

Conversation

kele-leanes
Copy link
Contributor

This PR exposes the canMessage method as requested in this comment

@kele-leanes kele-leanes self-assigned this Nov 28, 2023
@kele-leanes kele-leanes requested a review from a team as a code owner November 28, 2023 13:00
Comment on lines 34 to 35
try TestConfig.skip(because: "run manually against dev")
let opts = ClientOptions(api: ClientOptions.Api(env: .local, isSecure: false))
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this is running against local not dev?

Suggested change
try TestConfig.skip(because: "run manually against dev")
let opts = ClientOptions(api: ClientOptions.Api(env: .local, isSecure: false))
try TestConfig.skip(because: "run manually against local")
let opts = ClientOptions(api: ClientOptions.Api(env: .local, isSecure: false))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if you run the test locally you will get the following error:

error: -[XMTPTests.ClientTests testStaticCanMessage] : failed: caught error: "creationError("setup error")"

you should run it pointing to dev to pass the test

Copy link
Contributor

Choose a reason for hiding this comment

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

You're pointing at the local network here so it's definitely running on local. When I have the local network running in docker on my computer and run this test it passes when I kill the local server it fails. Just want to make it clear this is not running on dev (which is good we want it running on local since it's a test). We should still keep the test skipped as iOS CI can't run a local server but I think the wording of dev is misleading in this instance. I'm pushing up a fix for that and some spacing issues. 🙏

@nplasterer
Copy link
Contributor

@kele-leanes This is looking good you mind bumping the pod spec like I did here: #193 So that you can pick up these changes in React Native 🙏

@nplasterer nplasterer merged commit a0a6fe6 into main Nov 29, 2023
1 check passed
@nplasterer nplasterer deleted the kele/static-can-message branch November 29, 2023 18:55
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