test(doctor): bump timeouts for slow cases
This commit is contained in:
@@ -404,7 +404,7 @@ describe("doctor command", () => {
|
|||||||
([args]) => Array.isArray(args) && args[0] === "/usr/bin/defaults",
|
([args]) => Array.isArray(args) && args[0] === "/usr/bin/defaults",
|
||||||
);
|
);
|
||||||
expect(defaultsCalls.length).toBe(runCommandWithTimeout.mock.calls.length);
|
expect(defaultsCalls.length).toBe(runCommandWithTimeout.mock.calls.length);
|
||||||
});
|
}, 20_000);
|
||||||
|
|
||||||
it("runs legacy state migrations in non-interactive mode without prompting", async () => {
|
it("runs legacy state migrations in non-interactive mode without prompting", async () => {
|
||||||
readConfigFileSnapshot.mockResolvedValue({
|
readConfigFileSnapshot.mockResolvedValue({
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ describe("doctor command", () => {
|
|||||||
|
|
||||||
expect(runLegacyStateMigrations).toHaveBeenCalledTimes(1);
|
expect(runLegacyStateMigrations).toHaveBeenCalledTimes(1);
|
||||||
expect(confirm).not.toHaveBeenCalled();
|
expect(confirm).not.toHaveBeenCalled();
|
||||||
});
|
}, 20_000);
|
||||||
|
|
||||||
it("skips gateway restarts in non-interactive mode", async () => {
|
it("skips gateway restarts in non-interactive mode", async () => {
|
||||||
readConfigFileSnapshot.mockResolvedValue({
|
readConfigFileSnapshot.mockResolvedValue({
|
||||||
|
|||||||
Reference in New Issue
Block a user