-//TODO check why test failure and TestIsReadySuccess success
-func TestInitFailure(t *testing.T) {
- log := initLog(t)
- go initRmr(tests.ReadyIntervalSec, tests.GetPort(), tests.MaxMsgSize, tests.Flags, log)
- time.Sleep(time.Second)
- if msgr != nil {
- t.Errorf("The rmr router is ready, should be not ready")
- }
-}
-
-func TestIsReadyFailure(t *testing.T) {
- log := initLog(t)
- go initRmr(tests.ReadyIntervalSec, tests.GetPort(), tests.MaxMsgSize, tests.Flags, log)
- assert.True(t, msgr == nil || !msgr.IsReady())
-}