Description

WithinDuration asserts that the two times are within duration delta of each other.

assert.WithinDuration(time.Now(), time.Now(), 10*time.Second, "The difference should not be more than 10s")

Returns whether the assertion was successful (true) or not (false).

WithinDuration is referenced in 0 repositories