Skip to content

Commit 898bbb2

Browse files
Fix test helper
1 parent 215abd8 commit 898bbb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/testcontainers/src/utils/test-helper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export const getVolumeNames = async (): Promise<string[]> => {
8080
};
8181

8282
export const composeContainerName = async (serviceName: string, index = 1): Promise<string> => {
83-
const client = await getContainerRuntimeClient();
84-
return client.info.compose?.version.startsWith("1.") ? `${serviceName}_${index}` : `${serviceName}-${index}`;
83+
return `${serviceName}-${index}`;
8584
};
8685

8786
export const waitForDockerEvent = async (eventStream: Readable, eventName: string, times = 1) => {

0 commit comments

Comments
 (0)