Finally fixed (stupid) test mistake

This commit is contained in:
Jan-Lukas Else 2022-07-17 18:28:27 +02:00
parent 6aa8670ea9
commit 5b4c20b917
2 changed files with 9 additions and 8 deletions

View File

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

View File

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