Skip to content
Snippets Groups Projects
Commit cf0fea46 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix issue in test

parent 6fb31c0c
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,6 @@ package gateway ...@@ -9,7 +9,6 @@ package gateway
import ( import (
"fmt" "fmt"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/storage" "gitlab.com/elixxir/client/storage"
"gitlab.com/elixxir/comms/network" "gitlab.com/elixxir/comms/network"
"gitlab.com/elixxir/crypto/fastRNG" "gitlab.com/elixxir/crypto/fastRNG"
...@@ -824,15 +823,9 @@ func TestHostPool_RemoveGateway(t *testing.T) { ...@@ -824,15 +823,9 @@ func TestHostPool_RemoveGateway(t *testing.T) {
t.Errorf("Failed to unmarshal ID in mock ndf: %v", err) t.Errorf("Failed to unmarshal ID in mock ndf: %v", err)
} }
// Add the new gateway host
h, err := hostPool.manager.AddHost(gwId, "", nil, params.HostParams)
if err != nil {
jww.ERROR.Printf("Could not add gateway host %s: %+v", gwId, err)
}
// Manually add host information // Manually add host information
hostPool.hostMap[*gwId] = uint32(ndfIndex) hostPool.addGateway(gwId, ndfIndex)
hostPool.hostList[ndfIndex] = h
// Call the removal // Call the removal
hostPool.removeGateway(gwId) hostPool.removeGateway(gwId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment