Make tests less prone to fail

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
This commit is contained in:
Hector Sanjuan 2017-03-17 17:05:22 +01:00
parent f3c1636062
commit e3a52e1d7d
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ func testClusterShutdown(t *testing.T) {
}
func TestClusterStateSync(t *testing.T) {
cleanRaft()
cl, _, _, st, _ := testingCluster(t)
defer cleanRaft()
defer cl.Shutdown()

View File

@ -121,7 +121,7 @@ func TestUntrack(t *testing.T) {
t.Fatal(err)
}
time.Sleep(100 * time.Millisecond)
time.Sleep(400 * time.Millisecond)
st := mpt.Status(h1)
if st.Status != api.TrackerStatusUnpinned {