Commit 3b6a16b4 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Ensure that tests always cleanup afterwards using defer

parent 365fa794
......@@ -61,7 +61,11 @@ func StopIrmaServer() {
func newSessionHelper(t *testing.T, request irma.SessionRequest) *irmaserver.SessionResult {
defer StopIrmaServer()
client := parseStorage(t)
defer test.ClearTestStorage(t)
clientChan := make(chan *SessionResult)
serverChan := make(chan *irmaserver.SessionResult)
......@@ -81,8 +85,7 @@ func newSessionHelper(t *testing.T, request irma.SessionRequest) *irmaserver.Ses
serverResult := <-serverChan
require.Equal(t, token, serverResult.Token)
return serverResult
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