diff --git a/internal/transport/finger_test.go b/internal/transport/finger_test.go index 21d3e1797..bd1e8b24d 100644 --- a/internal/transport/finger_test.go +++ b/internal/transport/finger_test.go @@ -87,9 +87,12 @@ func (suite *FingerTestSuite) TestFingerWithHostMetaCacheStrategy() { // the TTL of the entry should have extended because we did a second // successful finger - suite.NotEqual(initialTime, repeatTime, "expected webfinger cache entry to have different expiry times") + if repeatTime.Equal(initialTime) { + suite.FailNowf("expected webfinger cache entry to have different expiry times", "initial: '%s', repeat: '%s'", initialTime, repeatTime) + } + if repeatTime.Before(initialTime) { - suite.FailNow("expected webfinger cache entry to not be a time traveller") + suite.FailNowf("expected webfinger cache entry to not be a time traveller", "initial: '%s', repeat: '%s'", initialTime, repeatTime) } // finger a non-existing user on that same instance which will return an error