From 8e57ed70259d0c396c610d2c9e08eec2277e5d8d Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 11 Dec 2018 10:02:01 +0100 Subject: [PATCH] autopilot/agent_test: let agent self-trigger retry This ensures that it is done updating its pending connections map before re-querying the heuristic. --- autopilot/agent_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autopilot/agent_test.go b/autopilot/agent_test.go index ac9da47c..1a3c8d75 100644 --- a/autopilot/agent_test.go +++ b/autopilot/agent_test.go @@ -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{