ref: ddc6d4e30f282f23b703a3b42da552886062c8c8
parent: 6a2bfcbec8df14b1741dbe9b5ead08158bf7adb9
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Feb 1 03:54:30 EST 2019
tpl/data: Adjust tests See #5643
--- a/tpl/data/data_test.go
+++ b/tpl/data/data_test.go
@@ -109,7 +109,8 @@
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 @@
}
// 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
}