add a distribution test with the rebroadcast delay disabled
Jeromy committed
May 17, 2015 at 14:08 UTC
2882c793e23457bedf3b2955c1a57fc9fcdb086d
1 file changed
+12
exchange/bitswap/bitswap_test.go
+12
@@ -120,6 +120,18 @@ func TestLargeFile(t *testing.T) {
120
PerformDistributionTest(t, numInstances, numBlocks)
121
}
122
123
+func TestLargeFileNoRebroadcast(t *testing.T) {
124
+ rbd := rebroadcastDelay.Get()
125
+ rebroadcastDelay.Set(time.Hour * 24 * 365 * 10) // ten years should be long enough
126
+ if testing.Short() {
127
+ t.SkipNow()
128
+ }
129
+ numInstances := 10
130
+ numBlocks := 100
131
+ PerformDistributionTest(t, numInstances, numBlocks)
132
+ rebroadcastDelay.Set(rbd)
133
+}
134
+
135
func TestLargeFileTwoPeers(t *testing.T) {
136
if testing.Short() {
137
t.SkipNow()