From e46d4b1155835c7a9ba4ef6d650f86137f335b29 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 17 Jul 2022 08:43:43 +0200 Subject: [PATCH] Fix tests? --- webmentionVerification_test.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/webmentionVerification_test.go b/webmentionVerification_test.go index 1e5b0d9..91cce10 100644 --- a/webmentionVerification_test.go +++ b/webmentionVerification_test.go @@ -29,10 +29,7 @@ func Test_verifyMention(t *testing.T) { } app.cfg.Server.PublicAddress = "https://example.org" - t.Cleanup(app.cleanup) - _ = app.initConfig(false) - app.initComponents(false) m := &mention{ Source: "https://example.net/articles/micropub-crossposting-to-twitter-and-enabling-tweetstorms", @@ -54,7 +51,7 @@ func Test_verifyMention(t *testing.T) { } -func Test_verifyMentionBidgy(t *testing.T) { +func Test_verifyMentionBridgy(t *testing.T) { testHtmlBytes, err := os.ReadFile("testdata/bridgy.html") require.NoError(t, err) @@ -72,10 +69,7 @@ func Test_verifyMentionBidgy(t *testing.T) { } app.cfg.Server.PublicAddress = "https://example.org" - t.Cleanup(app.cleanup) - _ = app.initConfig(false) - app.initComponents(false) m := &mention{ Source: "https://example.com/abc", @@ -111,10 +105,7 @@ func Test_verifyMentionColin(t *testing.T) { } app.cfg.Server.PublicAddress = "https://jlelse.blog" - t.Cleanup(app.cleanup) - _ = app.initConfig(false) - app.initComponents(false) m := &mention{ Source: "https://colinwalker.blog/?date=2021-11-14#p3",