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:
parent
dda7355ad6
commit
8e57ed7025
@ -1453,9 +1453,7 @@ func TestAgentSkipPendingConns(t *testing.T) {
|
|||||||
t.Fatalf("agent did not receive connection timeout")
|
t.Fatalf("agent did not receive connection timeout")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal the agent to try again, now that there are no pending conns.
|
// The agent will now retry since the last connection attempt failed.
|
||||||
agent.OnNodeUpdates()
|
|
||||||
|
|
||||||
// The heuristic again informs the agent that we need more channels.
|
// The heuristic again informs the agent that we need more channels.
|
||||||
select {
|
select {
|
||||||
case heuristic.moreChansResps <- moreChansResp{
|
case heuristic.moreChansResps <- moreChansResp{
|
||||||
|
Loading…
Reference in New Issue
Block a user