-
Notifications
You must be signed in to change notification settings - Fork 889
chore: rename FakeCoordinator for export #11991
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @spikecurtis and the rest of your teammates on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving the exported methods ServeAgent
, Close
, ServeMultiAgent
etc. as just panicking is likely to cause an unwelcome surprise to a later unwary user.
I'd feel better if we passed in a *testing.T
into FakeCoordinator
and call t.Fail()
if these methods are called, as that will at least give some more useful indication of where to look. Panicking right now in tests does not produce a useful stacktrace.
Here's what I get when we hit a panic:
vs
vs
so, anyway, the only way to get a stacktrace is panic. |
149acdb
to
dbd0a93
Compare
Merge activity
|
Part of a stack that fixes graceful disconnect from the CLI to tailnet. I reuse FakeCoordinator in a test for graceful disconnects.