Fixes #996 Rounding expiry time to 2s in TestClusterPingUpdate test
This commit is contained in:
parent
4aae7080a8
commit
bf9a089ae3
|
@ -764,8 +764,9 @@ func TestClustersPinUpdate(t *testing.T) {
|
||||||
if pinget.MaxDepth != -1 {
|
if pinget.MaxDepth != -1 {
|
||||||
t.Error("updated pin should be recursive like pin1")
|
t.Error("updated pin should be recursive like pin1")
|
||||||
}
|
}
|
||||||
|
expiry = expiry.Round(2 * time.Second)
|
||||||
if pinget.ExpireAt != expiry {
|
if pinget.ExpireAt != expiry {
|
||||||
t.Errorf("Expiry time didn't match. Expected: %s. Got: %s",
|
t.Errorf("Expiry didn't match. Expected: %s. Got: %s",
|
||||||
expiry.String(), pinget.ExpireAt.String())
|
expiry.String(), pinget.ExpireAt.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user