reduce prune backoff times for opportunistic grafting test
This commit is contained in:
parent
1cf5d645f4
commit
6d24f46a13
|
@ -1275,9 +1275,15 @@ func TestGossipsubPiggybackControl(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGossipsubOpportunisticGrafting(t *testing.T) {
|
func TestGossipsubOpportunisticGrafting(t *testing.T) {
|
||||||
|
originalGossipSubPruneBackoff := GossipSubPruneBackoff
|
||||||
|
GossipSubPruneBackoff = 500 * time.Millisecond
|
||||||
|
originalGossipSubGraftFloodThreshold := GossipSubGraftFloodThreshold
|
||||||
|
GossipSubGraftFloodThreshold = 100 * time.Millisecond
|
||||||
originalGossipSubOpportunisticGraftTicks := GossipSubOpportunisticGraftTicks
|
originalGossipSubOpportunisticGraftTicks := GossipSubOpportunisticGraftTicks
|
||||||
GossipSubOpportunisticGraftTicks = 2
|
GossipSubOpportunisticGraftTicks = 2
|
||||||
defer func() {
|
defer func() {
|
||||||
|
GossipSubPruneBackoff = originalGossipSubPruneBackoff
|
||||||
|
GossipSubGraftFloodThreshold = originalGossipSubGraftFloodThreshold
|
||||||
GossipSubOpportunisticGraftTicks = originalGossipSubOpportunisticGraftTicks
|
GossipSubOpportunisticGraftTicks = originalGossipSubOpportunisticGraftTicks
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue