aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-30 21:15:18 +0800
committercrupest <crupest@outlook.com>2020-01-30 21:15:18 +0800
commita1a2eede6942aef7d8c20f9e7fb25f53b2b63d86 (patch)
treeaa4df76441a44448dad3ee5e7b0d26bf80383259 /Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
parent52acf41e331ddbd66befed4692c804b754ba7d5c (diff)
downloadtimeline-a1a2eede6942aef7d8c20f9e7fb25f53b2b63d86.tar.gz
timeline-a1a2eede6942aef7d8c20f9e7fb25f53b2b63d86.tar.bz2
timeline-a1a2eede6942aef7d8c20f9e7fb25f53b2b63d86.zip
...
Diffstat (limited to 'Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r--Timeline.Tests/IntegratedTests/IntegratedTestBase.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
index 721a25af..af3e0c2f 100644
--- a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
+++ b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
@@ -106,8 +106,7 @@ namespace Timeline.Tests.IntegratedTests
public Task<HttpClient> CreateClientAs(int userNumber)
{
if (userNumber < 0)
- throw new ArgumentOutOfRangeException(nameof(userNumber), "User number can't be negative.");
-
+ return CreateDefaultClient();
if (userNumber == 0)
return CreateClientWithCredential("admin", "adminpw");
else