c2bd829fe2
Some of the core scheduler tests need the maximum batch size for writes to be smaller than the usual `structs.MaxUUIDsPerWriteRequest`. But they do so by unsafely modifying the global struct, which creates test flakes in other tests. Modify the functions under test to take a batch size parameter. Production code will pass the global while the tests can inject smaller values. Turn the `structs.MaxUUIDsPerWriteRequest` into a constant, and add a semgrep rule for avoiding this kind of thing in the future. |
||
---|---|---|
.. | ||
api_errorf.yml | ||
changelog.yml | ||
fsm_time.yml | ||
go_tests.yml | ||
http_endpoint.yml | ||
loopclosure.yml | ||
protect_globals.yml | ||
rpc_endpoint.yml | ||
rpc_metrics.yml | ||
time_after.yml | ||
ui.yml |