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

fix tests

parent 2193df35
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ import (
pb "gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/elixxir/comms/testutils"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/ndf"
"sync"
)
......@@ -53,8 +52,8 @@ func getNextAddress() string {
type MockRegistration struct {
}
func (s *MockRegistration) RegisterNode(NodeID *id.ID,
NodeTLSCert, GatewayTLSCert, RegistrationCode, Addr, Addr2 string) error {
func (s *MockRegistration) RegisterNode(salt []byte, serverAddr, serverTlsCert, gatewayAddr,
gatewayTlsCert, registrationCode string) error {
return nil
}
......@@ -85,8 +84,8 @@ func (s *MockRegistration) CheckRegistration(msg *pb.RegisteredNodeCheck) (*pb.R
type MockRegistrationError struct {
}
func (s *MockRegistrationError) RegisterNode(NodeID *id.ID,
NodeTLSCert, GatewayTLSCert, RegistrationCode, Addr, Addr2 string) error {
func (s *MockRegistrationError) RegisterNode(salt []byte, serverAddr, serverTlsCert, gatewayAddr,
gatewayTlsCert, registrationCode string) error {
return nil
}
......
......@@ -32,7 +32,7 @@ func TestSendNodeRegistration(t *testing.T) {
t.Errorf("Unable to call NewHost: %+v", err)
}
msgs := &pb.NodeRegistration{ID: testId.Bytes()}
msgs := &pb.NodeRegistration{Salt: testId.Bytes()}
err = server.SendNodeRegistration(host, msgs)
if err != nil {
t.Errorf("SendNodeTopology: Error received: %s", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment