Commit 1bffbbb6 authored by Ivar Derksen's avatar Ivar Derksen Committed by Sietse Ringers

Use require.NoError to test for errors in logs_test.go

parent 78e92305
......@@ -26,7 +26,7 @@ func TestLogging(t *testing.T) {
require.True(t, len(logs) == oldLogLength+1)
// Check whether newly issued credential is actually stored
require.Nil(t, client.Close())
require.NoError(t, client.Close())
client, _ = parseExistingStorage(t)
logs, err = client.LoadNewestLogs(100)
require.NoError(t, err)
......@@ -50,7 +50,7 @@ func TestLogging(t *testing.T) {
require.True(t, len(logs) == oldLogLength+2)
// Check whether log entry for disclosing session is actually stored
require.Nil(t, client.Close())
require.NoError(t, client.Close())
client, _ = parseExistingStorage(t)
logs, err = client.LoadNewestLogs(100)
require.NoError(t, err)
......@@ -82,7 +82,7 @@ func TestLogging(t *testing.T) {
require.True(t, len(logs) == oldLogLength+3)
// Check whether log entry for signature session is actually stored
require.Nil(t, client.Close())
require.NoError(t, client.Close())
client, _ = parseExistingStorage(t)
logs, err = client.LoadNewestLogs(100)
require.NoError(t, err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment