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
4d5b93fe
Commit
4d5b93fe
authored
May 17, 2015
by
Jeromy
Committed by
Juan Batiz-Benet
May 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a distribution test with the rebroadcast delay disabled
parent
d16d2a56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
bitswap_test.go
bitswap_test.go
+12
-0
No files found.
bitswap_test.go
View file @
4d5b93fe
...
...
@@ -120,6 +120,18 @@ func TestLargeFile(t *testing.T) {
PerformDistributionTest
(
t
,
numInstances
,
numBlocks
)
}
func
TestLargeFileNoRebroadcast
(
t
*
testing
.
T
)
{
rbd
:=
rebroadcastDelay
.
Get
()
rebroadcastDelay
.
Set
(
time
.
Hour
*
24
*
365
*
10
)
// ten years should be long enough
if
testing
.
Short
()
{
t
.
SkipNow
()
}
numInstances
:=
10
numBlocks
:=
100
PerformDistributionTest
(
t
,
numInstances
,
numBlocks
)
rebroadcastDelay
.
Set
(
rbd
)
}
func
TestLargeFileTwoPeers
(
t
*
testing
.
T
)
{
if
testing
.
Short
()
{
t
.
SkipNow
()
...
...
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