Fixes #996 Rounding expiry time to 2s in TestClusterPingUpdate test

This commit is contained in:
deepakgarg 2020-04-14 12:45:34 -07:00
parent 4aae7080a8
commit bf9a089ae3

View File

@ -764,8 +764,9 @@ func TestClustersPinUpdate(t *testing.T) {
if pinget.MaxDepth != -1 {
t.Error("updated pin should be recursive like pin1")
}
expiry = expiry.Round(2 * time.Second)
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())
}