-
Notifications
You must be signed in to change notification settings - Fork 3
Add deadlock regression test #61
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
base: main
Are you sure you want to change the base?
Conversation
24941bc to
de889e4
Compare
de889e4 to
1ed1cca
Compare
|
I copied everything except the tracing changes into #63 |
2f37908 to
c0f91ca
Compare
| default: | ||
| } | ||
| close(w.monitor.NotifyFinished()) | ||
| close(finishedChan) |
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.
needed to change this, because BeforeFinished was called twice here.
| } | ||
|
|
||
| func TestPooledQuery_deadlock_regression(t *testing.T) { | ||
| t.Skip() |
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.
uncommented this test
| require.IsType(t, &EventAddNode{}, ev) // event to notify the routing table | ||
| ev, _ = c.queryBehaviour.Perform(ctx) | ||
| require.IsType(t, &EventOutboundSendMessage{}, ev) | ||
| ev, _ = c.queryBehaviour.Perform(ctx) |
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.
Best to use DrainBehaviour from #64 here. We just want to run the behaviour until it has completed all its work. Future changes might introduce new events that would affect this test.
Relates to #57