diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-23 12:08:51 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-26 13:17:46 +0100 |
| commit | 7d5e58a383c1228e7e3534e2d31dd1d6c8a45ee6 (patch) | |
| tree | c6e564826a574e8d7f8fa0572a2c210dfbe42cae /internal/failover/monitor_test.go | |
| parent | 418dd15f533cd2708ea87019f7fefb1ab27885a5 (diff) | |
Failover: Support v6 gateway
Useful for v6 only VPNs
Diffstat (limited to 'internal/failover/monitor_test.go')
| -rw-r--r-- | internal/failover/monitor_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/failover/monitor_test.go b/internal/failover/monitor_test.go index 33a93a7..1b41931 100644 --- a/internal/failover/monitor_test.go +++ b/internal/failover/monitor_test.go @@ -108,7 +108,9 @@ func TestMonitor(t *testing.T) { } } dcm := NewDroppedMonitor(c.interval, c.pDropped, c.readRxBytes) - dcm.newPinger = c.mockedPinger + if c.mockedPinger != nil { + dcm.newPinger = c.mockedPinger + } dropped, err := dcm.Start(context.Background(), c.gateway, c.mtuSize) if dropped != c.wantDropped { t.Fatalf("dropped is not equal to want dropped, got: %v, want: %v", dropped, c.wantDropped) |
