Finally fixed (stupid) test mistake

pull/25/head
Jan-Lukas Else 3 weeks ago
parent 6aa8670ea9
commit 5b4c20b917
  1. 12
      .github/workflows/master.yml
  2. 5
      webmentionVerification_test.go

@ -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:

@ -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",

Loading…
Cancel
Save