testcontainers
Advanced tools
Comparing version
@@ -16,2 +16,3 @@ import { Uuid } from "../common"; | ||
private pullPolicy; | ||
private defaultWaitStrategy; | ||
private waitStrategy; | ||
@@ -26,2 +27,3 @@ private startupTimeout?; | ||
withPullPolicy(pullPolicy: ImagePullPolicy): this; | ||
withDefaultWaitStrategy(waitStrategy: WaitStrategy): this; | ||
withWaitStrategy(containerName: string, waitStrategy: WaitStrategy): this; | ||
@@ -28,0 +30,0 @@ withStartupTimeout(startupTimeout: number): this; |
@@ -24,2 +24,3 @@ "use strict"; | ||
pullPolicy = pull_policy_1.PullPolicy.defaultPolicy(); | ||
defaultWaitStrategy = wait_1.Wait.forListeningPorts(); | ||
waitStrategy = {}; | ||
@@ -57,2 +58,6 @@ startupTimeout; | ||
} | ||
withDefaultWaitStrategy(waitStrategy) { | ||
this.defaultWaitStrategy = waitStrategy; | ||
return this; | ||
} | ||
withWaitStrategy(containerName, waitStrategy) { | ||
@@ -115,3 +120,3 @@ this.waitStrategy[containerName] = waitStrategy; | ||
? this.waitStrategy[containerName] | ||
: wait_1.Wait.forListeningPorts(); | ||
: this.defaultWaitStrategy; | ||
if (this.startupTimeout !== undefined) { | ||
@@ -118,0 +123,0 @@ waitStrategy.withStartupTimeout(this.startupTimeout); |
@@ -1,1 +0,1 @@ | ||
export declare const LIB_VERSION = "10.24.2"; | ||
export declare const LIB_VERSION = "10.25.0"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LIB_VERSION = void 0; | ||
exports.LIB_VERSION = "10.24.2"; | ||
exports.LIB_VERSION = "10.25.0"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "testcontainers", | ||
"version": "10.24.2", | ||
"version": "10.25.0", | ||
"author": "Cristian Greco", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
387796
0.1%5483
0.13%