Extend unit test to cover mixed-case hostnames and daisy-chained gossip;
reduce mock gossip timer to 2 seconds to trigger more often during tests.
This commit is contained in:
1 parent
9800c43bfa
commit
fc1d837501
2 files changed
+22
-3
No files matched your search
@@ -97,7 +97,7 @@ type TestRouterClient struct {
|
||||
}
|
||||
|
||||
func (grouter *TestRouter) run(sender router.PeerName, gossiper router.Gossiper, gossipChan chan interface{}) {
|
||||
gossipTimer := time.Tick(10 * time.Second)
|
||||
gossipTimer := time.Tick(2 * time.Second)
|
||||
for {
|
||||
select {
|
||||
case gossip := <-gossipChan:
|
||||
|
||||
Reference in new issue
Block a user