Repository navigation
tcpip: import the upstream forwarder e2e test and its helpers - #8
Merged
spikecurtis merged 1 commit intoNov 18, 2026
Merged
Conversation
Copied unchanged from google/gvisor a5b10b7, the source this branch is built from. forwarder_test.go is in its own directory because go test allows one package (plus its _test package) per directory, where upstream's bazel builds each e2e file as its own package.
mafredri
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Imports upstream's forwarder e2e test and the three helper packages it imports, unchanged from google/gvisor
a5b10b7dd, the sourcenew-coder-mainis built from:pkg/tcpip/checker/checker.gopkg/tcpip/transport/tcp/testing/context/context.gopkg/tcpip/transport/tcp/test/e2e/e2e.gopkg/tcpip/transport/tcp/test/e2e/forwarder_test/forwarder_test.gogo testallows one package per directory, so the test is ine2e/forwarder_test/, where upstream's bazel build keeps it ine2e/.This is the first commit of #4 (
d15e8aa), split out unchanged so it can be reviewed on its own. Merge it with a merge commit to keep the SHA, so it drops out of #4's diff. A squash or rebase merge means #4 needs a rebase.Tested with
go test -count=1 ./pkg/tcpip/transport/tcp/test/e2e/forwarder_test/at this commit: passes.