Skip to content

Commit 9888287

Browse files
committed
Remove obsolete test case
1 parent 4edcaae commit 9888287

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

client/internal/routemanager/systemops/systemops_generic_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,6 @@ func setupTestEnv(t *testing.T) {
333333
// 10.10.0.0/24 more specific route exists in vpn table
334334
setupRouteAndCleanup(t, r, netip.MustParsePrefix("10.10.0.0/24"), intf)
335335

336-
// 127.0.10.0/24 more specific route exists in vpn table
337-
setupRouteAndCleanup(t, r, netip.MustParsePrefix("127.0.10.0/24"), intf)
338-
339336
// unique route in vpn table
340337
setupRouteAndCleanup(t, r, netip.MustParsePrefix("172.16.0.0/12"), intf)
341338
}

client/internal/routemanager/systemops/systemops_linux_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
)
2020

2121
var expectedVPNint = "wgtest0"
22-
var expectedLoopbackInt = "lo"
2322
var expectedExternalInt = "dummyext0"
2423
var expectedInternalInt = "dummyint0"
2524

@@ -31,12 +30,6 @@ func init() {
3130
dialer: &net.Dialer{},
3231
expectedPacket: createPacketExpectation("192.168.1.1", 12345, "10.10.0.2", 53),
3332
},
34-
{
35-
name: "To more specific route (local) without custom dialer via physical interface",
36-
expectedInterface: expectedLoopbackInt,
37-
dialer: &net.Dialer{},
38-
expectedPacket: createPacketExpectation("127.0.0.1", 12345, "127.0.10.1", 53),
39-
},
4033
}...)
4134
}
4235

client/internal/routemanager/systemops/systemops_windows_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
var (
2222
expectedExternalInt = "Ethernet1"
2323
expectedVPNint = "wgtest0"
24-
expectedInternalInt = "Ethernet2"
2524
)
2625

2726
type RouteInfo struct {
@@ -101,16 +100,6 @@ var testCases = []testCase{
101100
expectedInterface: expectedVPNint,
102101
dialer: &net.Dialer{},
103102
},
104-
105-
{
106-
name: "To more specific route (local) without custom dialer via physical interface",
107-
destination: "127.0.10.2:53",
108-
expectedSourceIP: "127.0.0.1",
109-
expectedDestPrefix: "127.0.0.0/8",
110-
expectedNextHop: "0.0.0.0",
111-
expectedInterface: expectedInternalInt,
112-
dialer: &net.Dialer{},
113-
},
114103
}
115104

116105
func TestRouting(t *testing.T) {

0 commit comments

Comments
 (0)