mirror of
https://github.com/bitwarden/server.git
synced 2025-05-08 13:12:16 -05:00
Resolve pr feedback
This commit is contained in:
parent
5c7fa7aae6
commit
e1f5c90e8a
@ -7,13 +7,13 @@ using Xunit.Abstractions;
|
|||||||
|
|
||||||
namespace Bit.Api.IntegrationTest.AdminConsole.Controllers;
|
namespace Bit.Api.IntegrationTest.AdminConsole.Controllers;
|
||||||
|
|
||||||
public class OrganizationUsersControllerTest : IClassFixture<ApiApplicationFactory>, IAsyncLifetime
|
public class OrganizationUsersControllerPerformanceTest : IClassFixture<ApiApplicationFactory>, IAsyncLifetime
|
||||||
{
|
{
|
||||||
private readonly HttpClient _client;
|
private readonly HttpClient _client;
|
||||||
private readonly ApiApplicationFactory _factory;
|
private readonly ApiApplicationFactory _factory;
|
||||||
private readonly ITestOutputHelper _testOutputHelper;
|
private readonly ITestOutputHelper _testOutputHelper;
|
||||||
|
|
||||||
public OrganizationUsersControllerTest(ApiApplicationFactory factory, ITestOutputHelper testOutputHelper)
|
public OrganizationUsersControllerPerformanceTest(ApiApplicationFactory factory, ITestOutputHelper testOutputHelper)
|
||||||
{
|
{
|
||||||
_factory = factory;
|
_factory = factory;
|
||||||
_testOutputHelper = testOutputHelper;
|
_testOutputHelper = testOutputHelper;
|
||||||
@ -51,7 +51,7 @@ public class OrganizationUsersControllerTest : IClassFixture<ApiApplicationFacto
|
|||||||
Assert.NotEmpty(result);
|
Assert.NotEmpty(result);
|
||||||
|
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
_testOutputHelper.WriteLine($"Request duration: {stopwatch.ElapsedMilliseconds} ms");
|
_testOutputHelper.WriteLine($"Seed: 100; Request duration: {stopwatch.ElapsedMilliseconds} ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "Performance testing")]
|
[Fact(Skip = "Performance testing")]
|
||||||
@ -74,7 +74,7 @@ public class OrganizationUsersControllerTest : IClassFixture<ApiApplicationFacto
|
|||||||
Assert.NotEmpty(result);
|
Assert.NotEmpty(result);
|
||||||
|
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
_testOutputHelper.WriteLine($"Request duration: {stopwatch.ElapsedMilliseconds} ms");
|
_testOutputHelper.WriteLine($"Seed: 60000; Request duration: {stopwatch.ElapsedMilliseconds} ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user