Skip to content

use synctest for the packet drop test#5393

Merged
marten-seemann merged 1 commit intomasterfrom
simnet-packet-drop-test
Oct 21, 2025
Merged

use synctest for the packet drop test#5393
marten-seemann merged 1 commit intomasterfrom
simnet-packet-drop-test

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

This test used to take 2-3s, with synctest they're now instantaneous.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.19%. Comparing base (c0611d2) to head (5a81468).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5393      +/-   ##
==========================================
+ Coverage   83.15%   83.19%   +0.04%     
==========================================
  Files         159      159              
  Lines       19252    19252              
==========================================
+ Hits        16008    16016       +8     
+ Misses       2617     2611       -6     
+ Partials      627      625       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the packet drop test from using a proxy-based approach to using synctest with a simulated network, significantly improving test performance from 2-3 seconds to instantaneous execution.

  • Replaced proxy-based packet dropping with simnet router implementation
  • Extracted droppingRouter to a shared helper file to avoid duplication
  • Updated test logic to use protocol perspectives instead of proxy directions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
integrationtests/self/simnet_helper_test.go New shared helper file containing the droppingRouter implementation
integrationtests/self/drop_test.go Complete rewrite of packet drop test using synctest and simnet instead of proxy
integrationtests/self/close_test.go Removed duplicate droppingRouter definition, now uses shared helper

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread integrationtests/self/drop_test.go Outdated
Comment thread integrationtests/self/drop_test.go Outdated
@marten-seemann marten-seemann force-pushed the simnet-packet-drop-test branch from 781dbe7 to 5a81468 Compare October 20, 2025 06:44
@marten-seemann marten-seemann merged commit 756bdc0 into master Oct 21, 2025
38 checks passed
@marten-seemann marten-seemann deleted the simnet-packet-drop-test branch October 23, 2025 17:58
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.

2 participants