mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): test composite OAuth cancellation signal
This commit is contained in:
parent
b784c80961
commit
42a06f9477
1 changed files with 5 additions and 1 deletions
|
|
@ -259,7 +259,11 @@ describe("ModelRuntime auth options", () => {
|
|||
const controller = new AbortController();
|
||||
|
||||
await runtime.getAuth("extension-oauth", { signal: controller.signal });
|
||||
expect(refreshSignal).toBe(controller.signal);
|
||||
expect(refreshSignal).toBeInstanceOf(AbortSignal);
|
||||
const reason = new Error("cancelled");
|
||||
controller.abort(reason);
|
||||
expect(refreshSignal?.aborted).toBe(true);
|
||||
expect(refreshSignal?.reason).toBe(reason);
|
||||
});
|
||||
|
||||
it("does not fabricate an API key method for an extension OAuth-only provider", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue