mirror of https://github.com/jlelse/GoBlog
Finally fixed (stupid) test mistake
This commit is contained in:
parent
6aa8670ea9
commit
5b4c20b917
|
@ -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…
Reference in New Issue