fix(tcs): clear recovered history revisit errors
This commit is contained in:
parent
bccf7e7494
commit
764e61b786
2 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ try {
|
|||
assert.equal(historyReceipt.append_only_reunderstanding, true);
|
||||
assert.equal(historyReceipt.future_simulation_fact_confidence, 0);
|
||||
assert.equal(engine.status().history_revisit_count, 1);
|
||||
const staleErrorState = engine.status();
|
||||
staleErrorState.last_error = "invalid_history_reunderstanding_schema";
|
||||
engine.save(staleErrorState);
|
||||
modelClient.revisitAttempts = 0;
|
||||
const retriedReceipt = await engine.revisitHistory({
|
||||
current_subject: "ICE-P-ZY001",
|
||||
|
|
@ -106,6 +109,7 @@ try {
|
|||
});
|
||||
assert.equal(retriedReceipt.outcome, "PASS");
|
||||
assert.equal(modelClient.revisitAttempts, 2);
|
||||
assert.equal(engine.status().last_error, null);
|
||||
await assert.rejects(() => engine.revisitHistory({
|
||||
current_subject: "MACHINE-AUDITOR",
|
||||
collective_self: "TCS-MOTHER-LPM-0001",
|
||||
|
|
|
|||
Loading…
Reference in a new issue