mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
7754f53385
* TestTable_ReadRandomNodesGetAll: refactor to integration and examples * TestTable_bumpNoDuplicates: refactor to integration and examples * TestUDPv4_smallNetConvergence: speed up from 1.7s to 0.3s by applying the test config * TestUPNP_DDWRT: move to integration tests * TestFairMix: split in 2, do more iterations in integration tests * TestDialSched: speed up from 1s to 0.2s by removing the unexpected dial check, (keep the check during the integration tests)
15 lines
291 B
Go
15 lines
291 B
Go
//go:build integration
|
|
// +build integration
|
|
|
|
package enode
|
|
|
|
import "testing"
|
|
|
|
// This test checks fairness of FairMix in the happy case where all sources return nodes
|
|
// within the context's deadline.
|
|
func TestFairMix(t *testing.T) {
|
|
for i := 0; i < 500; i++ {
|
|
testMixerFairness(t)
|
|
}
|
|
}
|