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

fix: intermittent test fails #166

Merged
merged 1 commit into from
Dec 2, 2022
Merged

fix: intermittent test fails #166

merged 1 commit into from
Dec 2, 2022

Conversation

Gozala
Copy link
Collaborator

@Gozala Gozala commented Dec 2, 2022

I have been seeing these kind of failures every now and then https://github.com/web3-storage/ucanto/actions/runs/3605142474/jobs/6075233040. Turns out some tests just compare delegations which may end up different because expiry date is encoded in UCANs, so if wall clock second mark changes between calls we get a different expiry. In tests it may happens because of the await in between.

This pr changes all tests to use fixed expiry to make them clock agnostic

@Gozala Gozala requested a review from gobengo December 2, 2022 21:34
@Gozala Gozala force-pushed the fix/intermittent-test-fails branch from 9bb29c3 to 10e07c3 Compare December 2, 2022 21:37
@Gozala Gozala merged commit 6cb0348 into main Dec 2, 2022
@Gozala Gozala mentioned this pull request Dec 2, 2022
This was referenced Dec 14, 2022
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.

1 participant