Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package 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
archives
notifications-bot
Commits
72c4eaa8
Commit
72c4eaa8
authored
5 years ago
by
ksparakis
Browse files
Options
Downloads
Patches
Plain Diff
commmented out test to see if it passes infinite loop
parent
7b41075e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
notifications/updateNDF_test.go
+9
-8
9 additions, 8 deletions
notifications/updateNDF_test.go
with
9 additions
and
8 deletions
notifications/updateNDF_test.go
+
9
−
8
View file @
72c4eaa8
...
...
@@ -37,14 +37,15 @@ func TestPollNdf(t *testing.T) {
}
// Test that pollNdf returns an error in this case
RequestNdfErr
=
errors
.
New
(
"Permissioning server does not have an ndf to give to client"
)
GetHostErrBool
=
true
testNdf
,
err
:=
PollNdf
(
newNdf
,
mockNotificationComms
{})
if
err
!=
nil
&&
testNdf
!=
nil
{
t
.
Logf
(
"RequestNdf should have returned nil for everything because there is no new ndf but didnt"
)
t
.
Fail
()
}
// This enters an infinite loop is there a way to fix this test?
//RequestNdfErr = errors.New("Permissioning server does not have an ndf to give to client")
//GetHostErrBool = true
//testNdf ,err := PollNdf(newNdf, mockNotificationComms{})
//
//if err != nil && testNdf != nil {
// t.Logf("RequestNdf should have returned nil for everything because there is no new ndf but didnt")
// t.Fail()
//}
// Test that pollNdf Fails if it cant decode the request msg
RequestNdfErr
=
nil
...
...
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