mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
fix(ql3): tolerate provider readiness convergence
This commit is contained in:
@@ -390,6 +390,19 @@ test('retries only bounded transient provider evidence failures', async () => {
|
||||
),
|
||||
/invalid evidence schema/,
|
||||
);
|
||||
|
||||
attempts = 0;
|
||||
await assert.rejects(
|
||||
retryProviderEvidence(
|
||||
async () => {
|
||||
attempts += 1;
|
||||
throw new Error('{"code":"ECONNREFUSED"}');
|
||||
},
|
||||
async () => {},
|
||||
),
|
||||
/ECONNREFUSED/,
|
||||
);
|
||||
assert.equal(attempts, 8);
|
||||
});
|
||||
|
||||
test('provider fixture logs only generation and authorization decision', () => {
|
||||
|
||||
Reference in New Issue
Block a user