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

Add deadlock regression test #61

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

dennis-tra
Copy link
Contributor

Relates to #57

@iand
Copy link
Contributor

iand commented Oct 12, 2023

I copied everything except the tracing changes into #63

@dennis-tra dennis-tra force-pushed the issue-48-deadlock-test branch from 2f37908 to c0f91ca Compare October 13, 2023 07:19
default:
}
close(w.monitor.NotifyFinished())
close(finishedChan)
Copy link
Contributor Author

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.

@@ -275,7 +274,6 @@ func (ts *QueryBehaviourBaseTestSuite) TestNotifiesQueryFinished() {
}

func TestPooledQuery_deadlock_regression(t *testing.T) {
t.Skip()
Copy link
Contributor Author

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, &EventOutboundSendMessage{}, ev)
ev, _ = c.queryBehaviour.Perform(ctx)
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants