mirror of https://github.com/jlelse/GoBlog
Fix a test
This commit is contained in:
parent
c2dada5d50
commit
bfa2d302c9
|
@ -4,6 +4,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -13,6 +14,9 @@ import (
|
||||||
func Test_errors(t *testing.T) {
|
func Test_errors(t *testing.T) {
|
||||||
app := &goBlog{
|
app := &goBlog{
|
||||||
cfg: &config{
|
cfg: &config{
|
||||||
|
Db: &configDb{
|
||||||
|
File: filepath.Join(t.TempDir(), "test.db"),
|
||||||
|
},
|
||||||
Server: &configServer{
|
Server: &configServer{
|
||||||
PublicAddress: "https://example.com",
|
PublicAddress: "https://example.com",
|
||||||
},
|
},
|
||||||
|
@ -26,7 +30,9 @@ func Test_errors(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_ = app.initDatabase(false)
|
||||||
app.initMarkdown()
|
app.initMarkdown()
|
||||||
|
app.initSessions()
|
||||||
_ = app.initTemplateStrings()
|
_ = app.initTemplateStrings()
|
||||||
_ = app.initRendering()
|
_ = app.initRendering()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue