mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user