Commit 4d5b93fe authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

add a distribution test with the rebroadcast delay disabled

parent d16d2a56
...@@ -120,6 +120,18 @@ func TestLargeFile(t *testing.T) { ...@@ -120,6 +120,18 @@ func TestLargeFile(t *testing.T) {
PerformDistributionTest(t, numInstances, numBlocks) 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) { func TestLargeFileTwoPeers(t *testing.T) {
if testing.Short() { if testing.Short() {
t.SkipNow() t.SkipNow()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment