Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comms
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
comms
Commits
c73e285a
Commit
c73e285a
authored
4 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
2193df35
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/mockServer_test.go
+4
-5
4 additions, 5 deletions
client/mockServer_test.go
node/register_test.go
+1
-1
1 addition, 1 deletion
node/register_test.go
with
5 additions
and
6 deletions
client/mockServer_test.go
+
4
−
5
View file @
c73e285a
...
...
@@ -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
,
G
atewayT
LS
Cert
,
R
egistrationCode
,
Addr
,
Addr2
string
)
error
{
func
(
s
*
MockRegistration
)
RegisterNode
(
salt
[]
byte
,
serverAddr
,
serverTlsCert
,
gatewayAddr
,
g
atewayT
ls
Cert
,
r
egistrationCode
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
,
G
atewayT
LS
Cert
,
R
egistrationCode
,
Addr
,
Addr2
string
)
error
{
func
(
s
*
MockRegistrationError
)
RegisterNode
(
salt
[]
byte
,
serverAddr
,
serverTlsCert
,
gatewayAddr
,
g
atewayT
ls
Cert
,
r
egistrationCode
string
)
error
{
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
node/register_test.go
+
1
−
1
View file @
c73e285a
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment