Skip to content

test(metrics): request counters start at zero - #1233

Open
chriswessels wants to merge 1 commit into
graphprotocol:mainfrom
graphops:fork-gateway-x/qos-counter-initialization
Open

chriswessels wants to merge 1 commit into
graphprotocol:mainfrom
graphops:fork-gateway-x/qos-counter-initialization

Conversation

@chriswessels

Copy link
Copy Markdown
Contributor

#1227 stopped ResponseMetrics::new from incrementing the request counters at construction, but it added no test. This adds one: a freshly constructed ResponseMetrics reads zero on both counters, so a regression that fabricates a startup success or failure fails CI.

Validation: cargo +nightly-2026-06-11 fmt --all -- --check, then, with upstream CI's RUSTFLAGS in a rust:1.95 Linux container:

  • cargo check --locked
  • cargo clippy --locked -- -Dwarnings --force-warn deprecated --force-warn dead-code
  • cargo test --locked

graphprotocol#1227 removed the increments that fabricated a startup success and failure, without a test. Pin that a new ResponseMetrics reads zero on both counters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant