Skip to content

Commit

Permalink
OSS-853: Load tests are failing and blocking a release (#161)
Browse files Browse the repository at this point in the history
* fixed cleaning of resources in custom headers test and decreased the size of load test

Co-authored-by: Gennadii Shestakov <[email protected]>
Co-authored-by: Stanislav Parkhomenko <[email protected]>
  • Loading branch information
3 people authored Jul 27, 2021
1 parent f1450ff commit d5d2c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion FaunaDB.Client.Test/ClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public async Task TestGetAnInstance()
[Test]
public async Task TestGetAnInstanceWithCustomHeaders()
{
var clientWithCustomHeaders = new FaunaClient(
var rootClientWithCustomHeaders = new FaunaClient(
secret: faunaSecret,
endpoint: faunaEndpoint,
customHeaders: new Dictionary<string, string>
Expand All @@ -244,6 +244,9 @@ public async Task TestGetAnInstanceWithCustomHeaders()
}
);

var clientWithCustomHeadersKey = await rootClientWithCustomHeaders.Query(CreateKey(Obj("database", DbRef, "role", "server")));
var clientWithCustomHeaders = rootClientWithCustomHeaders.NewSessionClient(clientWithCustomHeadersKey.Get(SECRET_FIELD));

await clientWithCustomHeaders.Query(
CreateCollection(
Obj("name", "magic_spells"))
Expand Down
4 changes: 2 additions & 2 deletions FaunaDB.Client.Test/ParallelTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace Test
{
public class ParallelTest : TestCase
{
private const int IN_PARALLEL = 1000;
private const int MAX_ATTEMPTS = 10;
private const int IN_PARALLEL = 200;
private const int MAX_ATTEMPTS = 5;
private const string COLLECTION_NAME = "ParallelTestCollection";

[OneTimeSetUp]
Expand Down

0 comments on commit d5d2c25

Please sign in to comment.