Skip to content

Commit b8b17f1

Browse files
committed
decrease container cleanup timeout
1 parent 931c85f commit b8b17f1

File tree

1 file changed

+1
-1
lines changed
  • internal-packages/testcontainers/src

1 file changed

+1
-1
lines changed

internal-packages/testcontainers/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,6 @@ export async function useContainer<TContainer extends StartedTestContainer>(
201201
} finally {
202202
// WARNING: Testcontainers by default will not wait until the container has stopped. It will simply issue the stop command and return immediately.
203203
// If you need to wait for the container to be stopped, you can provide a timeout. The unit of timeout option here is second
204-
await logCleanup(name, container.stop({ timeout: 30 }), metadata);
204+
await logCleanup(name, container.stop({ timeout: 10 }), metadata);
205205
}
206206
}

0 commit comments

Comments
 (0)