Skip to content

Commit d5d2c25

Browse files
shestakovgGennadii Shestakovparkhomenko
authored
OSS-853: Load tests are failing and blocking a release (#161)
* 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]>
1 parent f1450ff commit d5d2c25

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

FaunaDB.Client.Test/ClientTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public async Task TestGetAnInstance()
234234
[Test]
235235
public async Task TestGetAnInstanceWithCustomHeaders()
236236
{
237-
var clientWithCustomHeaders = new FaunaClient(
237+
var rootClientWithCustomHeaders = new FaunaClient(
238238
secret: faunaSecret,
239239
endpoint: faunaEndpoint,
240240
customHeaders: new Dictionary<string, string>
@@ -244,6 +244,9 @@ public async Task TestGetAnInstanceWithCustomHeaders()
244244
}
245245
);
246246

247+
var clientWithCustomHeadersKey = await rootClientWithCustomHeaders.Query(CreateKey(Obj("database", DbRef, "role", "server")));
248+
var clientWithCustomHeaders = rootClientWithCustomHeaders.NewSessionClient(clientWithCustomHeadersKey.Get(SECRET_FIELD));
249+
247250
await clientWithCustomHeaders.Query(
248251
CreateCollection(
249252
Obj("name", "magic_spells"))

FaunaDB.Client.Test/ParallelTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace Test
1313
{
1414
public class ParallelTest : TestCase
1515
{
16-
private const int IN_PARALLEL = 1000;
17-
private const int MAX_ATTEMPTS = 10;
16+
private const int IN_PARALLEL = 200;
17+
private const int MAX_ATTEMPTS = 5;
1818
private const string COLLECTION_NAME = "ParallelTestCollection";
1919

2020
[OneTimeSetUp]

0 commit comments

Comments
 (0)