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
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# - name: Test
|
- name: Test
|
||||||
# uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
# with:
|
with:
|
||||||
# push: false
|
push: false
|
||||||
# target: test
|
target: test
|
||||||
# tags: test
|
tags: test
|
||||||
- name: Build base image
|
- name: Build base image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -98,14 +98,15 @@ func Test_verifyMentionColin(t *testing.T) {
|
||||||
|
|
||||||
app := &goBlog{
|
app := &goBlog{
|
||||||
httpClient: mockClient.Client,
|
httpClient: mockClient.Client,
|
||||||
cfg: createDefaultConfig(),
|
cfg: createDefaultTestConfig(t),
|
||||||
d: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
d: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
app.cfg.Server.PublicAddress = "https://jlelse.blog"
|
app.cfg.Server.PublicAddress = "https://jlelse.blog"
|
||||||
|
|
||||||
_ = app.initConfig(false)
|
err = app.initConfig(false)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
m := &mention{
|
m := &mention{
|
||||||
Source: "https://colinwalker.blog/?date=2021-11-14#p3",
|
Source: "https://colinwalker.blog/?date=2021-11-14#p3",
|
||||||
|
|
Loading…
Reference in New Issue