hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ddc6d4e30f282f23b703a3b42da552886062c8c8
parent 6a2bfcbec8df14b1741dbe9b5ead08158bf7adb9
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri,  1 Feb 2019 08:54:30 +0100

tpl/data: Adjust tests

See #5643

Diffstat:
Mtpl/data/data_test.go | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tpl/data/data_test.go b/tpl/data/data_test.go
@@ -109,7 +109,8 @@ func TestGetCSV(t *testing.T) {
 		got, err := ns.GetCSV(test.sep, test.url)
 
 		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)
 			continue
 		}
@@ -189,10 +190,11 @@ func TestGetJSON(t *testing.T) {
 		}
 
 		// Get on with it
-		got, err := ns.GetJSON(test.url)
+		got, _ := ns.GetJSON(test.url)
 
 		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
 		}