From d35f7f181c847a153f3360b59c1a6b68d1f62760 Mon Sep 17 00:00:00 2001 From: Timothy Coleman Date: Tue, 17 Mar 2026 15:47:37 +0000 Subject: [PATCH 1/2] Increase commit/prepare timeout in TUnit tests --- src/KurrentDB.Testing.ClusterVNodeApp/NodeShim.EmbeddedNode.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/KurrentDB.Testing.ClusterVNodeApp/NodeShim.EmbeddedNode.cs b/src/KurrentDB.Testing.ClusterVNodeApp/NodeShim.EmbeddedNode.cs index 0513d8c2151..8bbc9203856 100644 --- a/src/KurrentDB.Testing.ClusterVNodeApp/NodeShim.EmbeddedNode.cs +++ b/src/KurrentDB.Testing.ClusterVNodeApp/NodeShim.EmbeddedNode.cs @@ -22,6 +22,8 @@ sealed class EmbeddedNode(NodeShimOptions options) : INode { { "KurrentDB:Certificate:TrustedRootCertificatesPath", options.Embedded.TrustedRootCertificatesPath }, { "KurrentDB:CertificateFile:CertificateFile", options.Embedded.CertificateFile }, { "KurrentDB:CertificateFile:CertificatePrivateKeyFile", options.Embedded.CertificatePrivateKeyFile }, + { "KurrentDB:Database:PrepareTimeoutMs", 5_000 }, + { "KurrentDB:Database:CommitTimeoutMs", 5_000 }, { "KurrentDB:Connectors:DataProtection:Token", "the-token" }, }); From 89e9d43593e4d6e2b53595dcb17b250f5fff31a8 Mon Sep 17 00:00:00 2001 From: Timothy Coleman Date: Wed, 18 Mar 2026 08:00:08 +0000 Subject: [PATCH 2/2] Deflake --- .../Modules/Streams/StreamsServiceTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs b/src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs index 80574f9998e..a630d7c0468 100644 --- a/src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs +++ b/src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs @@ -242,9 +242,11 @@ public async ValueTask append_session_throws_when_transaction_is_too_large(Cance // Fill the request with records and must ensure that the size of the request must be within the limits while (true) { // Create a random valid record size + // leave a bit overhead space for props and schema name in CalculateSizeOnDisk + var recordOverHead = 1024; var validRecordSize = Faker.Random.Int( Math.Min(Fixture.ServerOptions.Application.MaxAppendSize / 4, 1024), - Fixture.ServerOptions.Application.MaxAppendEventSize); + Fixture.ServerOptions.Application.MaxAppendEventSize - recordOverHead); request.Records.Add(CreateSyntheticTestRecord(Faker.Random.Bytes(validRecordSize)));