Skip to content

Commit 59fd11d

Browse files
author
Kevin Hellemun
committed
Modified test.
1 parent ac850ca commit 59fd11d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

BunqSdk.Tests/BunqSdkTestBase.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ protected static ApiContext GetApiContext()
3636
try
3737
{
3838
apiContext = ApiContext.Restore(FILENAME_CONTEXT_CONF);
39-
User.List(apiContext);
39+
apiContext.EnsureSessionActive();
4040
}
4141
catch (BunqException)
4242
{
4343
apiContext = CreateApiContext();
4444
}
45-
catch (ApiException)
46-
{
47-
apiContext = CreateApiContext();
48-
}
4945

5046
apiContext.Save(FILENAME_CONTEXT_CONF);
5147

0 commit comments

Comments
 (0)