feat: set slower backoff for current context #15327
Annotations
10 errors
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L989
Error: [vitest] No "backoffMultiplier" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:989:47
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:178:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:371:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:412:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:478:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:597:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:720:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:835:18
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:1015:20
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:1115:20
|
Run unit tests:
packages/main/src/plugin/kubernetes/contexts-manager.ts#L984
Error: [vitest] No "backoffMultiplierCurrentContext" export is defined on the "./contexts-constants.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("./contexts-constants.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ TestContextsManager.getBackoffForContext src/plugin/kubernetes/contexts-manager.ts:984:9
❯ TestContextsManager.createPodInformer src/plugin/kubernetes/contexts-manager.ts:390:21
❯ TestContextsManager.createKubeContextInformers src/plugin/kubernetes/contexts-manager.ts:317:29
❯ TestContextsManager.update src/plugin/kubernetes/contexts-manager.ts:246:32
❯ src/plugin/kubernetes/contexts-manager.spec.ts:1184:20
|
Loading