dita_v2: fix arithmetic in test_asex_account mixed-ops funding expectation (2x50x0.5=50, not 100)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -115,7 +115,8 @@ class TestASExConcurrency:
|
|||||||
for f in as_completed([ex.submit(_f, i) for i in [0,1]] + [ex.submit(_fu, i) for i in [0,1]]):
|
for f in as_completed([ex.submit(_f, i) for i in [0,1]] + [ex.submit(_fu, i) for i in [0,1]]):
|
||||||
f.result(timeout=60)
|
f.result(timeout=60)
|
||||||
assert p._backend._proj._k_realized == pytest.approx(200.0)
|
assert p._backend._proj._k_realized == pytest.approx(200.0)
|
||||||
assert p._backend._proj._k_funding == pytest.approx(100.0)
|
# 2 workers x 50 calls x 0.5 = 50.0; exact total proves zero lost updates
|
||||||
|
assert p._backend._proj._k_funding == pytest.approx(50.0)
|
||||||
p.close(); _clean()
|
p.close(); _clean()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user