mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 209060862 Change-Id: I2cd02f0032b80d0087110095548b1a8ffa696ac2
This commit is contained in:
+1
-1
@@ -578,7 +578,7 @@ var danglingEndpoints = make(map[Endpoint]struct{})
|
||||
func GetDanglingEndpoints() []Endpoint {
|
||||
es := make([]Endpoint, 0, len(danglingEndpoints))
|
||||
danglingEndpointsMu.Lock()
|
||||
for e, _ := range danglingEndpoints {
|
||||
for e := range danglingEndpoints {
|
||||
es = append(es, e)
|
||||
}
|
||||
danglingEndpointsMu.Unlock()
|
||||
|
||||
@@ -2949,13 +2949,13 @@ func TestTCPEndpointProbe(t *testing.T) {
|
||||
// We don't do an extensive validation of every field but a
|
||||
// basic sanity test.
|
||||
if got, want := state.ID.LocalAddress, tcpip.Address(context.StackAddr); got != want {
|
||||
t.Fatalf("unexpected LocalAddress got: %d, want: %d", got, want)
|
||||
t.Fatalf("unexpected LocalAddress got: %q, want: %q", got, want)
|
||||
}
|
||||
if got, want := state.ID.LocalPort, c.Port; got != want {
|
||||
t.Fatalf("unexpected LocalPort got: %d, want: %d", got, want)
|
||||
}
|
||||
if got, want := state.ID.RemoteAddress, tcpip.Address(context.TestAddr); got != want {
|
||||
t.Fatalf("unexpected RemoteAddress got: %d, want: %d", got, want)
|
||||
t.Fatalf("unexpected RemoteAddress got: %q, want: %q", got, want)
|
||||
}
|
||||
if got, want := state.ID.RemotePort, uint16(context.TestPort); got != want {
|
||||
t.Fatalf("unexpected RemotePort got: %d, want: %d", got, want)
|
||||
|
||||
Reference in New Issue
Block a user