Skip to content

Commit

Permalink
Rebaseline RU expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Sep 29, 2020
1 parent 0d0f075 commit f99fc09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/Equinox.CosmosStore.Integration/CosmosIntegration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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) @>

[<AutoData(MaxFail=1, SkipIfRequestedViaEnvironmentVariable="EQUINOX_INTEGRATION_SKIP_COSMOS")>]
[<AutoData(MaxFail=1, MaxTest=2, SkipIfRequestedViaEnvironmentVariable="EQUINOX_INTEGRATION_SKIP_COSMOS")>]
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
Expand Down Expand Up @@ -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
}

[<AutoData(MaxFail=1, MaxTest=2, SkipIfRequestedViaEnvironmentVariable="EQUINOX_INTEGRATION_SKIP_COSMOS")>]
Expand Down

0 comments on commit f99fc09

Please sign in to comment.