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:
Bryan Boreham authored and Matthias Radestock committed 2015-11-02 20:01:40 +00:00
1 parent 9800c43bfa
commit fc1d837501
2 files changed
+22 -3

No files matched your search

+1 -1
View File
@@ -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: