package flog import ( "testing" "github.com/reiver/go-manyerrors" "fmt" "math/rand" "time" ) func TestNewFanoutRouter(t *testing.T) { randomness := rand.New(rand.NewSource( time.Now().UTC().UnixNano() )) router := NewFanoutRouter() if nil == router { t.Errorf("After trying to create a discard router, expected it to be not nil, but was: %v", router) } message := fmt.Sprintf("%x", randomness.Int63n(9999999999)) context := make(map[string]interface{}) limit := randomness.Int63n(30) for i:=int64(0); i