diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-02-01 08:54:30 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-02-01 08:54:30 +0100 |
commit | ddc6d4e30f282f23b703a3b42da552886062c8c8 (patch) | |
tree | fef419fba8df6a1f3bd43410cda78beff07e2a47 /tpl | |
parent | 6a2bfcbec8df14b1741dbe9b5ead08158bf7adb9 (diff) |
tpl/data: Adjust tests
See #5643
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/data/data_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tpl/data/data_test.go b/tpl/data/data_test.go index 7a0640e95..9e7c0d0a6 100644 --- 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 } |