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

#888 w3i date encoding #894

Merged
merged 3 commits into from
Jun 5, 2023
Merged

#888 w3i date encoding #894

merged 3 commits into from
Jun 5, 2023

Conversation

llbartekll
Copy link
Contributor

Description

  • fix date encoding strategy for web3inbox
  • fix push test that was failing in rare cases blocking CI releases

Resolves #888

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

@llbartekll llbartekll temporarily deployed to internal June 5, 2023 07:33 — with GitHub Actions Inactive
@@ -167,6 +167,7 @@ final class PushTests: XCTestCase {
return
}
subscriptionTopic = pushSubscription.topic
sleep(1)
Copy link
Member

Choose a reason for hiding this comment

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

nit: can you leave context here of why this is required and what is being fixed?

Copy link
Contributor Author

@llbartekll llbartekll Jun 5, 2023

Choose a reason for hiding this comment

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

So, when dapp receives proposal response and subscribes to push subscription topic, wallet immediately calls delete() method(not waiting for dapp's subscribe response). And usually dapp can subscribe before wallet publishes pushDelete but rarely delete reaches relay before dapp is able to subscribe and pushDelete payload is never delivered to a dapp.
This won't happen in real world and is just an effect of test design and immediate function calls. Push is not natively supported for dapps at the moment. Dapp client is implemented mostly for tests.
1 second delay of pushDelete method call should eliminate futur test fails.

@llbartekll llbartekll merged commit 83e4b3f into develop Jun 5, 2023
@llbartekll llbartekll deleted the #888-w3i-date-encoding branch June 5, 2023 13:10
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