From 5b4c20b917eceda13824349f58c8615a4c5be30e Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 17 Jul 2022 18:28:27 +0200 Subject: [PATCH] Finally fixed (stupid) test mistake --- .github/workflows/master.yml | 12 ++++++------ webmentionVerification_test.go | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index a025113..6cb148d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -23,12 +23,12 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # - name: Test - # uses: docker/build-push-action@v2 - # with: - # push: false - # target: test - # tags: test + - name: Test + uses: docker/build-push-action@v2 + with: + push: false + target: test + tags: test - name: Build base image uses: docker/build-push-action@v2 with: diff --git a/webmentionVerification_test.go b/webmentionVerification_test.go index 91cce10..d96643c 100644 --- a/webmentionVerification_test.go +++ b/webmentionVerification_test.go @@ -98,14 +98,15 @@ func Test_verifyMentionColin(t *testing.T) { app := &goBlog{ httpClient: mockClient.Client, - cfg: createDefaultConfig(), + cfg: createDefaultTestConfig(t), d: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // do nothing }), } app.cfg.Server.PublicAddress = "https://jlelse.blog" - _ = app.initConfig(false) + err = app.initConfig(false) + require.NoError(t, err) m := &mention{ Source: "https://colinwalker.blog/?date=2021-11-14#p3",