mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 05:02:03 -05:00
parent
6a2bfcbec8
commit
ddc6d4e30f
1 changed files with 5 additions and 3 deletions
|
@ -109,7 +109,8 @@ func TestGetCSV(t *testing.T) {
|
||||||
got, err := ns.GetCSV(test.sep, test.url)
|
got, err := ns.GetCSV(test.sep, test.url)
|
||||||
|
|
||||||
if _, ok := test.expect.(bool); ok {
|
if _, ok := test.expect.(bool); ok {
|
||||||
require.Error(t, err, msg)
|
require.Equal(t, 1, int(ns.deps.Log.ErrorCounter.Count()))
|
||||||
|
//require.Error(t, err, msg)
|
||||||
require.Nil(t, got)
|
require.Nil(t, got)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -189,10 +190,11 @@ func TestGetJSON(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get on with it
|
// Get on with it
|
||||||
got, err := ns.GetJSON(test.url)
|
got, _ := ns.GetJSON(test.url)
|
||||||
|
|
||||||
if _, ok := test.expect.(bool); ok {
|
if _, ok := test.expect.(bool); ok {
|
||||||
require.Error(t, err, msg)
|
require.Equal(t, 1, int(ns.deps.Log.ErrorCounter.Count()))
|
||||||
|
//require.Error(t, err, msg)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue