autopilot/agent_test: let agent self-trigger retry

This ensures that it is done updating its pending connections map before
re-querying the heuristic.
This commit is contained in:
Johan T. Halseth 2018-12-11 10:02:01 +01:00
parent dda7355ad6
commit 8e57ed7025
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -1453,9 +1453,7 @@ func TestAgentSkipPendingConns(t *testing.T) {
t.Fatalf("agent did not receive connection timeout")
}
// Signal the agent to try again, now that there are no pending conns.
agent.OnNodeUpdates()
// The agent will now retry since the last connection attempt failed.
// The heuristic again informs the agent that we need more channels.
select {
case heuristic.moreChansResps <- moreChansResp{