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

chore: update go-path #8436

Merged
merged 2 commits into from
Sep 27, 2021
Merged

chore: update go-path #8436

merged 2 commits into from
Sep 27, 2021

Conversation

aschmahmann
Copy link
Contributor

@aschmahmann aschmahmann commented Sep 15, 2021

go.mod Outdated Show resolved Hide resolved
Comment on lines +65 to +66
// Note: we could just check a particular path here, but it would require either greater use of the HAMT internals
// or some hard coded values in the test both of which would be a pain to follow.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes the test take a couple of seconds to run, which is a bit annoying if we were going to run many of these although not so bad by itself.

Comment on lines +73 to +75
if timeoutCtx.Err() == nil {
t.Fatal(err)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one of the reasons I chose to do this instead of a sharness test (the other being the sharness tests are less portable which is overall just no fun).

The equivalent sharness test would have to process text outputs like "context deadline exceeded" as good and "context cancelled" as bad which is a little too close for comfort and wouldn't detect other regressions where we returned "context deadline exceeded" in error.

@aschmahmann aschmahmann marked this pull request as ready for review September 27, 2021 17:00
@aschmahmann aschmahmann enabled auto-merge (rebase) September 27, 2021 19:50
@aschmahmann aschmahmann merged commit 5471092 into master Sep 27, 2021
@aschmahmann aschmahmann deleted the chore/update-go-path branch September 27, 2021 19:50
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