raft: fix TestNodeStepUnblock

The test cases have side-effect. We need to stop testing if one of the test
fails. Also timeout should be much longer to avoid false-positive.
This commit is contained in:
Xiang Li 2016-06-03 10:20:41 -07:00
parent b3fee0abff
commit 500296d0fb

View File

@ -99,8 +99,8 @@ func TestNodeStepUnblock(t *testing.T) {
n.done = make(chan struct{})
default:
}
case <-time.After(time.Millisecond * 100):
t.Errorf("#%d: failed to unblock step", i)
case <-time.After(1 * time.Second):
t.Fatalf("#%d: failed to unblock step", i)
}
}
}