Skip to content

Commit 535d23a

Browse files
committed
chore(supervisor): oxfmt the pod-count files
1 parent 8cec1d1 commit 535d23a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

apps/supervisor/src/backpressure/k8sPodCountSignalSource.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ function apiReturning(list: unknown): K8sApi {
99

1010
describe("createPodCountFetcher", () => {
1111
it("returns items.length when the list is not truncated", async () => {
12-
const fetch = createPodCountFetcher(apiReturning({ items: [{}], metadata: {} }), "v4-runs", 1000);
12+
const fetch = createPodCountFetcher(
13+
apiReturning({ items: [{}], metadata: {} }),
14+
"v4-runs",
15+
1000
16+
);
1317
expect(await fetch()).toBe(1);
1418
});
1519

apps/supervisor/src/clients/kubernetes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ function withTimeout<T>(promise: Promise<T>, timeoutMs: number, what: string): P
9494
return Promise.race([
9595
promise,
9696
new Promise<never>((_resolve, reject) => {
97-
setTimeout(() => reject(new Error(`${what} timed out after ${timeoutMs}ms`)), timeoutMs).unref();
97+
setTimeout(
98+
() => reject(new Error(`${what} timed out after ${timeoutMs}ms`)),
99+
timeoutMs
100+
).unref();
98101
}),
99102
]);
100103
}

0 commit comments

Comments
 (0)