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

webtransport: tame log output of tests #1884

Closed
wants to merge 1 commit into from

Conversation

marten-seemann
Copy link
Contributor

Every t.Run emits one log line, making the test output very lengthy.

@MarcoPolo
Copy link
Contributor

Is this really a problem? You don't see these lines when the test pass. And when they don't you get information for how flaky the test is.

Copy link
Contributor

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

I don't feel strongly about having these in the a t.Run or not. We should fix the defer though. Besides that this looks good.

require.NoError(t, err)
m, err := newCertManager(priv, cl)
require.NoError(t, err)
defer m.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be here, since we are closing this below (this is my bug)

// reboot
m, err = newCertManager(priv, cl)
require.NoError(t, err)
defer m.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

This defer doesn't work as before anymore

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.

None yet

2 participants