Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const TEMPLATES = [
{ name: "Ruby", source: "https://github.com/skevetter/devsy-quickstart-ruby" },
]

const LAUNCH_TIMEOUT_MS = 5 * 60 * 1000
const LAUNCH_TIMEOUT_MS = 10 * 60 * 1000

let {
open = $bindable(false),
Expand Down Expand Up @@ -314,7 +314,7 @@ async function handleLaunch() {
if (launchRunning) {
launchRunning = false
launchError =
"Workspace creation timed out after 5 minutes. The process may still be running in the background."
"Workspace creation timed out after 10 minutes. The process may still be running in the background."
toasts.error(launchError)
unlisten?.()
unlisten = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ describe("launch watchdog", () => {
document.body.innerHTML = ""
})

it("fires after 5 minutes when no done event arrives", async () => {
it("fires after 10 minutes when no done event arrives", async () => {
providers.set([makeProvider("docker")])
const { getByText, queryByText, unmount } = render(WorkspaceWizard, {
props: { open: true },
Expand All @@ -407,11 +407,11 @@ describe("launch watchdog", () => {
await fireEvent.click(launchBtn)
await flushAsync()

// Advance past the 5-minute watchdog.
await vi.advanceTimersByTimeAsync(5 * 60 * 1000 + 1)
// Advance past the 10-minute watchdog.
await vi.advanceTimersByTimeAsync(10 * 60 * 1000 + 1)
await flushAsync()

expect(queryByText(/timed out after 5 minutes/i)).not.toBeNull()
expect(queryByText(/timed out after 10 minutes/i)).not.toBeNull()
expect(queryByText("Open Workspace")).toBeNull()
expect(queryByText("Retry")).not.toBeNull()
unmount()
Expand All @@ -432,10 +432,10 @@ describe("launch watchdog", () => {
await flushAsync()

// Trip the watchdog.
await vi.advanceTimersByTimeAsync(5 * 60 * 1000 + 1)
await vi.advanceTimersByTimeAsync(10 * 60 * 1000 + 1)
await flushAsync()

expect(queryByText(/timed out after 5 minutes/i)).not.toBeNull()
expect(queryByText(/timed out after 10 minutes/i)).not.toBeNull()

// Late done event (the listener should have been disposed, so this is a no-op).
progressCallback?.({
Expand All @@ -446,7 +446,7 @@ describe("launch watchdog", () => {
await flushAsync()

// Timeout error is still visible; Open Workspace did not appear.
expect(queryByText(/timed out after 5 minutes/i)).not.toBeNull()
expect(queryByText(/timed out after 10 minutes/i)).not.toBeNull()
expect(queryByText("Open Workspace")).toBeNull()
unmount()
})
Expand Down
Loading