Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
1bffbbb6
Commit
1bffbbb6
authored
Jan 31, 2020
by
Ivar Derksen
Committed by
Sietse Ringers
Feb 05, 2020
Browse files
Use require.NoError to test for errors in logs_test.go
parent
78e92305
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/sessiontest/logs_test.go
View file @
1bffbbb6
...
...
@@ -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
.
N
il
(
t
,
client
.
Close
())
require
.
N
oError
(
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
.
N
il
(
t
,
client
.
Close
())
require
.
N
oError
(
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
.
N
il
(
t
,
client
.
Close
())
require
.
N
oError
(
t
,
client
.
Close
())
client
,
_
=
parseExistingStorage
(
t
)
logs
,
err
=
client
.
LoadNewestLogs
(
100
)
require
.
NoError
(
t
,
err
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment