From f99fc090e8026393862c1211c5c6971a6e841498 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Tue, 29 Sep 2020 18:15:57 +0100 Subject: [PATCH] Rebaseline RU expectations --- .../CosmosCoreIntegration.fs | 8 ++++---- .../Equinox.CosmosStore.Integration/CosmosIntegration.fs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Equinox.CosmosStore.Integration/CosmosCoreIntegration.fs b/tests/Equinox.CosmosStore.Integration/CosmosCoreIntegration.fs index 1dd65f906..b823ed34e 100644 --- a/tests/Equinox.CosmosStore.Integration/CosmosCoreIntegration.fs +++ b/tests/Equinox.CosmosStore.Integration/CosmosCoreIntegration.fs @@ -46,7 +46,7 @@ type Tests(testOutputHelper) = let! res = Events.append ctx streamName index <| TestEvents.Create(0,1) test <@ AppendResult.Ok 1L = res @> test <@ [EqxAct.Append] = capture.ExternalCalls @> - verifyRequestChargesMax 33 // 32.27 // WAS 10 + verifyRequestChargesMax 34 // 33.07 // WAS 10 // Clear the counters capture.Clear() @@ -133,7 +133,7 @@ type Tests(testOutputHelper) = pos <- pos + 42L pos =! res test <@ [EqxAct.Append] = capture.ExternalCalls @> - verifyRequestChargesMax 46 // 45.42 // 47.02 // WAS 20 + verifyRequestChargesMax 47 // 46.52 // 47.02 // WAS 20 capture.Clear() let! res = Events.getNextIndex ctx streamName @@ -148,7 +148,7 @@ type Tests(testOutputHelper) = let extrasCount = match extras with x when x > 50 -> 5000 | x when x < 1 -> 1 | x -> x*100 let! _pos = ctx.NonIdempotentAppend(stream, TestEvents.Create (int pos,extrasCount)) test <@ [EqxAct.Append] = capture.ExternalCalls @> - verifyRequestChargesMax 261 // 260.01 // 463.01 observed + verifyRequestChargesMax 442 // 441.88 // 463.01 observed capture.Clear() let! pos = ctx.Sync(stream,?position=None) @@ -179,7 +179,7 @@ type Tests(testOutputHelper) = let! res = Events.append ctx streamName 0L expected test <@ AppendResult.Ok 1L = res @> test <@ [EqxAct.Append] = capture.ExternalCalls @> - verifyRequestChargesMax 33 // 32.05 WAS 11 // 10.33 + verifyRequestChargesMax 36 // 35.78 WAS 11 // 10.33 capture.Clear() // Try overwriting it (a competing consumer would see the same) diff --git a/tests/Equinox.CosmosStore.Integration/CosmosIntegration.fs b/tests/Equinox.CosmosStore.Integration/CosmosIntegration.fs index e15a3a4c3..b9b53b91e 100644 --- a/tests/Equinox.CosmosStore.Integration/CosmosIntegration.fs +++ b/tests/Equinox.CosmosStore.Integration/CosmosIntegration.fs @@ -70,7 +70,7 @@ type Tests(testOutputHelper) = let tripRequestCharges = [ for e, c in capture.RequestCharges -> sprintf "%A" e, c ] test <@ float rus >= Seq.sum (Seq.map snd tripRequestCharges) @> - [] + [] let ``Can roundtrip against Cosmos, correctly batching the reads [without reading the Tip]`` context skuId = Async.RunSynchronously <| async { let maxItemsPerRequest = 5 let store = createPrimaryContext log maxItemsPerRequest @@ -98,7 +98,7 @@ type Tests(testOutputHelper) = let expectedResponses = transactions/maxItemsPerRequest + 1 test <@ List.replicate expectedResponses EqxAct.ResponseBackward @ [EqxAct.QueryBackward] = capture.ExternalCalls @> - verifyRequestChargesMax 8 // 7.74 // 10.01 + verifyRequestChargesMax 9 // 8.58 // 10.01 } []