You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* main:
feat: support adding wait strategies as functional option (testcontainers#3161)
fix(etcd): expose ports for the etcd nodes (testcontainers#3162)
Copy file name to clipboardExpand all lines: docs/modules/index.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,8 +210,10 @@ In order to simplify the creation of the container for a given module, `Testcont
210
210
-`testcontainers.WithAdditionalLifecycleHooks`: a function that appends lifecycle hooks to the existing ones for the container request.
211
211
-`testcontainers.WithAlwaysPull`: a function that pulls the image before starting the container.
212
212
-`testcontainers.WithImagePlatform`: a function that sets the image platform for the container request.
213
-
-`testcontainers.WithWaitStrategy`: a function that sets the wait strategy for the container request.
214
-
-`testcontainers.WithWaitStrategyAndDeadline`: a function that sets the wait strategy for the container request with a deadline.
213
+
-`testcontainers.WithWaitStrategy`: a function that replaces the wait strategy for the container request.
214
+
-`testcontainers.WithAdditionalWaitStrategy`: a function that appends the wait strategy for the container request.
215
+
-`testcontainers.WithWaitStrategyAndDeadline`: a function that replaces the wait strategy for the container request with a deadline.
216
+
-`testcontainers.WithAdditionalWaitStrategyAndDeadline`: a function that appends the wait strategy for the container request with a deadline.
215
217
-`testcontainers.WithStartupCommand`: a function that sets the execution of a command when the container starts.
216
218
-`testcontainers.WithAfterReadyCommand`: a function that sets the execution of a command right after the container is ready (its wait strategy is satisfied).
217
219
-`testcontainers.WithDockerfile`: a function that sets the build from a Dockerfile for the container request.
testcontainers.WithWaitStrategy(wait.ForLog("database system is ready to accept connections").WithOccurrence(2).WithStartupTimeout(5*time.Second)),
228
+
testcontainers.WithAdditionalWaitStrategy(wait.ForLog("database system is ready to accept connections").WithOccurrence(2).WithStartupTimeout(5*time.Second)),
testcontainers.WithWaitStrategy(wait.ForLog("database system is ready to accept connections").WithOccurrence(2).WithStartupTimeout(5*time.Second)),
258
+
testcontainers.WithAdditionalWaitStrategy(wait.ForLog("database system is ready to accept connections").WithOccurrence(2).WithStartupTimeout(5*time.Second)),
0 commit comments