Skip to content

Commit

Permalink
Merge pull request #338 from matrix-org/kegan/race-test-2
Browse files Browse the repository at this point in the history
bugfix: actually use the provided mock value in tests
  • Loading branch information
kegsay committed Oct 11, 2023
2 parents fe624d5 + 32c2f6b commit e8315ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync2/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (

func setTimeSinceValue(val time.Duration) {
timeSinceMu.Lock()
timeSinceValue = time.Minute * 2
timeSinceValue = val
timeSinceMu.Unlock()
}
func init() {
Expand Down

0 comments on commit e8315ea

Please sign in to comment.