Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
client
Commits
26222258
Commit
26222258
authored
3 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Update tests in UD/
parent
124438ec
No related branches found
No related tags found
2 merge requests
!510
Release
,
!207
WIP: Client Restructure
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ud/lookup_test.go
+1
-1
1 addition, 1 deletion
ud/lookup_test.go
ud/search_test.go
+1
-1
1 addition, 1 deletion
ud/search_test.go
ud/utils_test.go
+8
-2
8 additions, 2 deletions
ud/utils_test.go
with
10 additions
and
4 deletions
ud/lookup_test.go
+
1
−
1
View file @
26222258
...
@@ -83,7 +83,7 @@ func TestManager_Lookup(t *testing.T) {
...
@@ -83,7 +83,7 @@ func TestManager_Lookup(t *testing.T) {
p
:=
single
.
RequestParams
{
p
:=
single
.
RequestParams
{
Timeout
:
timeout
,
Timeout
:
timeout
,
MaxResponseMessages
:
1
,
MaxResponseMessages
:
1
,
CmixParam
:
cmix
.
GetDefaultCMIXParams
(),
CmixParam
s
:
cmix
.
GetDefaultCMIXParams
(),
}
}
// Run the lookup
// Run the lookup
...
...
This diff is collapsed.
Click to expand it.
ud/search_test.go
+
1
−
1
View file @
26222258
...
@@ -68,7 +68,7 @@ func TestManager_Search(t *testing.T) {
...
@@ -68,7 +68,7 @@ func TestManager_Search(t *testing.T) {
p
:=
single
.
RequestParams
{
p
:=
single
.
RequestParams
{
Timeout
:
timeout
,
Timeout
:
timeout
,
MaxResponseMessages
:
1
,
MaxResponseMessages
:
1
,
CmixParam
:
cmix
.
GetDefaultCMIXParams
(),
CmixParam
s
:
cmix
.
GetDefaultCMIXParams
(),
}
}
_
,
_
,
err
=
Search
(
m
.
network
,
m
.
events
,
prng
,
m
.
e2e
.
GetGroup
(),
_
,
_
,
err
=
Search
(
m
.
network
,
m
.
events
,
prng
,
m
.
e2e
.
GetGroup
(),
...
...
This diff is collapsed.
Click to expand it.
ud/utils_test.go
+
8
−
2
View file @
26222258
...
@@ -78,7 +78,7 @@ func newTestManager(t *testing.T) (*Manager, *testNetworkManager) {
...
@@ -78,7 +78,7 @@ func newTestManager(t *testing.T) (*Manager, *testNetworkManager) {
// Create our Manager object
// Create our Manager object
m
:=
&
Manager
{
m
:=
&
Manager
{
e2e
:
mockE2e
{},
e2e
:
mockE2e
{
grp
:
getGroup
()
},
events
:
event
.
NewEventManager
(),
events
:
event
.
NewEventManager
(),
user
:
mockUser
{
testing
:
t
,
key
:
key
},
user
:
mockUser
{
testing
:
t
,
key
:
key
},
store
:
udStore
,
store
:
udStore
,
...
@@ -398,7 +398,13 @@ func (m mockComms) GetHost(hostId *id.ID) (*connect.Host, bool) {
...
@@ -398,7 +398,13 @@ func (m mockComms) GetHost(hostId *id.ID) (*connect.Host, bool) {
return
m
.
udHost
,
true
return
m
.
udHost
,
true
}
}
type
mockE2e
struct
{}
type
mockE2e
struct
{
grp
*
cyclic
.
Group
}
func
(
m
mockE2e
)
GetHistoricalDHPubkey
()
*
cyclic
.
Int
{
return
m
.
grp
.
NewInt
(
6
)
}
func
(
m
mockE2e
)
GetReceptionID
()
*
id
.
ID
{
func
(
m
mockE2e
)
GetReceptionID
()
*
id
.
ID
{
//TODO implement me
//TODO implement me
...
...
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