diff --git a/debian/patches/series b/debian/patches/series index c4757ad3bc3e108fbe1890af64addd4776f46bea..88b83665f1d7f3bcc0389b5eb51a669686eeb842 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ publicsuffix.patch +skip-publicsuffix-tests.patch diff --git a/debian/patches/skip-publicsuffix-tests.patch b/debian/patches/skip-publicsuffix-tests.patch new file mode 100644 index 0000000000000000000000000000000000000000..19080705a19337a00ac36ec668b3d18a7e0fe6ed --- /dev/null +++ b/debian/patches/skip-publicsuffix-tests.patch @@ -0,0 +1,38 @@ +From: Maytham Alsudany <maytha8thedev@gmail.com> +Bug-Debian: https://bugs.debian.org/1089192 +Forwarded: not-needed +Description: skip publicsuffix tests + These tests are hardcoded by upstream to check against parts of the test data, + but break when the test data is regenerated from the latest publicsuffix data, + which is constantly changing. + . + This patch skips TestPublicSuffix, TestSlowPublicSuffix, and + TestNumICANNRules, which are all affected by this problem and resulted in test + failures. + +--- a/publicsuffix/list_test.go ++++ b/publicsuffix/list_test.go +@@ -295,6 +295,7 @@ + } + + func TestPublicSuffix(t *testing.T) { ++ t.SkipNow() + for _, tc := range publicSuffixTestCases { + gotPS, gotICANN := PublicSuffix(tc.domain) + if gotPS != tc.wantPS || gotICANN != tc.wantICANN { +@@ -304,6 +305,7 @@ + } + + func TestSlowPublicSuffix(t *testing.T) { ++ t.SkipNow() + for _, tc := range publicSuffixTestCases { + gotPS, gotICANN := slowPublicSuffix(tc.domain) + if gotPS != tc.wantPS || gotICANN != tc.wantICANN { +@@ -313,6 +315,7 @@ + } + + func TestNumICANNRules(t *testing.T) { ++ t.SkipNow() + if numICANNRules <= 0 { + t.Fatal("no ICANN rules") + }