chore(pmtud): fix integration tests not compiling

This commit is contained in:
Quentin McGaw
2026-05-02 02:51:49 +00:00
parent 7a74d4f462
commit 9b6f048fe8
2 changed files with 26 additions and 5 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ import (
"github.com/qdm12/gluetun/internal/command"
"github.com/qdm12/gluetun/internal/firewall"
"github.com/qdm12/gluetun/internal/firewall/iptables"
"github.com/qdm12/gluetun/internal/pmtud/constants"
"github.com/qdm12/log"
"github.com/stretchr/testify/assert"
@@ -32,8 +33,8 @@ func Test_PathMTUDiscover(t *testing.T) {
logger := log.New(log.SetLevel(log.LevelDebug))
cmder := command.New()
fw, err := firewall.NewConfig(t.Context(), logger, cmder, nil, nil)
if errors.Is(err, firewall.ErrIPTablesNotSupported) {
fw, err := firewall.NewConfig(t.Context(), logger, logger, cmder, nil, nil)
if errors.Is(err, iptables.ErrNotSupported) {
t.Skip("iptables not installed, skipping TCP PMTUD tests")
}
require.NoError(t, err, "creating firewall config")