diff options
author | crupest <crupest@outlook.com> | 2022-04-11 22:16:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-11 22:16:19 +0800 |
commit | d4ccd980f6e3ae7ed7f1a8bedd5e3c10cf4df022 (patch) | |
tree | c9460faee34ac77b0bcdfdf0ebbc27507dd96fa0 /BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs | |
parent | 671817e186d4f2c6209b8499f381068443a61793 (diff) | |
download | timeline-d4ccd980f6e3ae7ed7f1a8bedd5e3c10cf4df022.tar.gz timeline-d4ccd980f6e3ae7ed7f1a8bedd5e3c10cf4df022.tar.bz2 timeline-d4ccd980f6e3ae7ed7f1a8bedd5e3c10cf4df022.zip |
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs index 95c1dd97..b701e4eb 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest2.cs @@ -65,7 +65,7 @@ namespace Timeline.Tests.IntegratedTests2 public async Task OtherUserCantSeePrivate() { await CreateUserAsync("user2", "user2pw"); - var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); + using var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks", expectedStatusCode: HttpStatusCode.Forbidden); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks/1", expectedStatusCode: HttpStatusCode.Forbidden); } @@ -92,7 +92,7 @@ namespace Timeline.Tests.IntegratedTests2 { await ChangeVisibilityAsync(TimelineVisibility.Register); await CreateUserAsync("user2", "user2pw"); - var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); + using var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks", expectedStatusCode: HttpStatusCode.OK); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks/1", expectedStatusCode: HttpStatusCode.OK); } @@ -120,7 +120,7 @@ namespace Timeline.Tests.IntegratedTests2 { await ChangeVisibilityAsync(TimelineVisibility.Public); await CreateUserAsync("user2", "user2pw"); - var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); + using var client = CreateClientWithToken(await CreateTokenWithCredentialAsync("user2", "user2pw")); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks", expectedStatusCode: HttpStatusCode.OK); await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/user/bookmarks/1", expectedStatusCode: HttpStatusCode.OK); } |