From ad2829be08116cdb596990c1152e1dfc4f0ffe47 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 17 Apr 2022 23:31:15 +0800 Subject: ... --- BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'BackEnd/Timeline.Tests/IntegratedTests') diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs index 01390baf..62932010 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs @@ -1,4 +1,4 @@ -using FluentAssertions; +using FluentAssertions; using System.Collections.Generic; using System.Threading.Tasks; using Timeline.Models.Http; @@ -95,12 +95,6 @@ namespace Timeline.Tests.IntegratedTests body.Nickname.Should().Be("aaa"); } - { - var token = userClient.DefaultRequestHeaders.Authorization!.Parameter!; - // Token should expire. - await userClient.TestPostAssertErrorAsync("token/verify", new HttpVerifyOrRevokeTokenRequest() { Token = token }); - } - { // Check password. (await CreateClientWithCredential("newuser", "newpw")).Dispose(); @@ -294,7 +288,6 @@ namespace Timeline.Tests.IntegratedTests { using var client = await CreateClientAsUser(); await client.TestPostAsync(changePasswordUrl, new HttpChangePasswordRequest { OldPassword = "user1pw", NewPassword = "newpw" }); - await client.TestPatchAssertUnauthorizedAsync("users/user1", new HttpUserPatchRequest { }); (await CreateClientWithCredential("user1", "newpw")).Dispose(); } -- cgit v1.2.3