Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix race in http sync test (#401)
In the `TestSimpleSync` test we are asserting that `hs.Cron.AddFunc` and `hs.Cron.Start` are called by the time the `dataSync` is sent. This is a race, because these methods are actually called after the first send. I get failures here ~25% of the time (seems like @skyerus does too). This changes things to add the handler and start the cron _before_ the first send, which makes things deterministic. Signed-off-by: Todd Baert <toddbaert@gmail.com>
- Loading branch information
1d0c8e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.BenchmarkResolveBooleanValue/test_targetingBoolFlag
16517
ns/op 4817 B/op 80 allocs/op12303
ns/op 4817 B/op 80 allocs/op1.34
BenchmarkResolveIntValue/test_targetingNumberFlag
15292
ns/op 4825 B/op 80 allocs/op11388
ns/op 4825 B/op 80 allocs/op1.34
BenchmarkResolveObjectValue/test_targetingObjectFlag
22370
ns/op 6106 B/op 104 allocs/op15835
ns/op 6106 B/op 104 allocs/op1.41
This comment was automatically generated by workflow using github-action-benchmark.