Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
abdf5c87
Commit
abdf5c87
authored
Nov 21, 2014
by
Brian Tiger Chow
Committed by
Jeromy
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests(bitswap/notifications) test niladic
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
097bc1b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
notifications/notifications_test.go
notifications/notifications_test.go
+9
-0
No files found.
notifications/notifications_test.go
View file @
abdf5c87
...
...
@@ -49,6 +49,15 @@ func TestSubscribeMany(t *testing.T) {
assertBlocksEqual
(
t
,
e2
,
r2
)
}
func
TestSubscribeIsANoopWhenCalledWithNoKeys
(
t
*
testing
.
T
)
{
n
:=
New
()
defer
n
.
Shutdown
()
ch
:=
n
.
Subscribe
(
context
.
TODO
())
// no keys provided
if
_
,
ok
:=
<-
ch
;
ok
{
t
.
Fatal
(
"should be closed if no keys provided"
)
}
}
func
TestCarryOnWhenDeadlineExpires
(
t
*
testing
.
T
)
{
impossibleDeadline
:=
time
.
Nanosecond
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment