Merge pull request #338 from matrix-org/kegan/race-test-2

bugfix: actually use the provided mock value in tests
This commit is contained in:
kegsay 2023-10-11 14:37:57 +01:00 committed by GitHub
commit e8315ead87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ var (
func setTimeSinceValue(val time.Duration) {
timeSinceMu.Lock()
timeSinceValue = time.Minute * 2
timeSinceValue = val
timeSinceMu.Unlock()
}
func init() {