test(triage): a repeated usage.begin keeps the first baseline (review round, #1873, lane triage-cap)
This commit was merged in pull request #1992.
This commit is contained in:
1 parent
17b972b92d
commit
57af33630d
1 file changed
+2
@@ -785,6 +785,8 @@ test("cap: the relay writes one line per turn, known or unknown, and a session t
|
||||
spend(dataRoot, 7); // before the turn: the baseline holds it
|
||||
assert.deepEqual(await c.call("usage.begin", { turn: first.id }), {});
|
||||
spend(dataRoot, 40);
|
||||
// A repeated begin for the same turn keeps the first baseline, so the tokens before it still count.
|
||||
assert.deepEqual(await c.call("usage.begin", { turn: first.id }), {});
|
||||
spend(dataRoot, 2);
|
||||
await c.call("usage.end", { turn: first.id });
|
||||
// A repeated end does not count the turn twice.
|
||||
|
||||
Reference in new issue
Block a user