Skip to content

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.

}

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, &EventAddNode{}, ev) // event to notify the routing table
ev, _ = c.queryBehaviour.Perform(ctx)
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.

3 participants