mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-05 19:18:25 +00:00
Count the new path-MTU purge step in the profiler row-count guard
The merge added an unconditional tick step, purge_expired_path_mtu, which took the emitted subsystem steps from 24 to 25. The pinned row count is only compiled under the profiling feature, so the ordinary four-check run did not see it and local CI caught it in the profiling suite. The guard did its job: it exists so the step table and its expected size cannot diverge unnoticed. Re-checked by setting the count one too high and confirming it fails.
This commit is contained in:
@@ -378,9 +378,9 @@ mod tests {
|
||||
#[test]
|
||||
fn emitted_row_count_matches_build() {
|
||||
let emitted = STEPS.iter().filter(|s| s.emitted()).count();
|
||||
// 24 unconditional subsystem steps + the whole-tick span, plus the two
|
||||
// 25 unconditional subsystem steps + the whole-tick span, plus the two
|
||||
// conditionally-compiled steps where this build has them.
|
||||
let mut expected = 25;
|
||||
let mut expected = 26;
|
||||
if cfg!(any(target_os = "linux", target_os = "macos")) {
|
||||
expected += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user