Permalink
Browse files

tpl/data: Adjust tests

See #5643
  • Loading branch information...
bep committed Feb 1, 2019
1 parent 6a2bfcb commit ddc6d4e30f282f23b703a3b42da552886062c8c8
Showing with 5 additions and 3 deletions.
  1. +5 −3 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
}

0 comments on commit ddc6d4e

Please sign in to comment.