Skip to content
Snippets Groups Projects
Commit 5214c9fe authored by Jake Taylor's avatar Jake Taylor
Browse files

FIX TESTS

parent 1dd88b4a
Branches
Tags
No related merge requests found
......@@ -91,21 +91,14 @@ func newHostPool(poolParams PoolParams, rng io.Reader, ndf *ndf.NetworkDefinitio
addGatewayChan: addGateway,
}
// Propagate the NDF and return
// Propagate the NDF
err := result.updateConns()
if err != nil {
return nil, err
}
// Build the initial HostPool
err = result.pruneHostPool()
if err != nil {
return nil, err
}
// Convert the NDF into an empty map object in order to allow updateConns
result.ndfMap, err = convertNdfToMap(nil)
return result, err
// Build the initial HostPool and return
return result, result.pruneHostPool()
}
// UpdateNdf Mutates internal ndf to the given ndf
......
......
......@@ -115,7 +115,7 @@ func TestHostPool_ManageHostPool(t *testing.T) {
testPool.UpdateNdf(newNdf)
time.Sleep(2 * time.Second)
time.Sleep(testPool.poolParams.PruneInterval + 1*time.Second)
// Check that old gateways are not in pool
for _, ndfGw := range testNdf.Gateways {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment