mirror of https://github.com/status-im/consul.git
Cleans up some bad unit test failure cases.
This commit is contained in:
parent
48bdf48003
commit
e156a58b95
|
@ -27,7 +27,7 @@ func TestTombstoneGC(t *testing.T) {
|
||||||
gran := 5 * time.Millisecond
|
gran := 5 * time.Millisecond
|
||||||
gc, err := NewTombstoneGC(ttl, gran)
|
gc, err := NewTombstoneGC(ttl, gran)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("should fail")
|
t.Fatalf("err: %v", err)
|
||||||
}
|
}
|
||||||
gc.SetEnabled(true)
|
gc.SetEnabled(true)
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func TestTombstoneGC_Expire(t *testing.T) {
|
||||||
gran := 5 * time.Millisecond
|
gran := 5 * time.Millisecond
|
||||||
gc, err := NewTombstoneGC(ttl, gran)
|
gc, err := NewTombstoneGC(ttl, gran)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("should fail")
|
t.Fatalf("err: %v", err)
|
||||||
}
|
}
|
||||||
gc.SetEnabled(true)
|
gc.SetEnabled(true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue