Skip to content

Commit 182835f

Browse files
committedJan 26, 2022
fix: revert http as default communication mode
1 parent 1e17844 commit 182835f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎bin/cmds/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ exports.builder = (yargs) => (
165165
.option('http', {
166166
describe: 'uses http exec instead of docker exec to run tests',
167167
type: 'boolean',
168-
default: true,
168+
default: false,
169169
})
170170
.option('in-one', {
171171
alias: 'in_one',

‎bin/cmds/test_cmds/auto-compose.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function tester(compose, argv) {
107107
}
108108
}
109109

110-
if (argv.services.includes('redisCluster')) {
110+
if (argv.services && argv.services.includes('redisCluster')) {
111111
const cmdWait = process.env.DEPLOY_CLUSTER_SCRIPT || '/deploy-scripts/wait-for-cluster.sh';
112112
volumes.push(
113113
`${resolve(__dirname, '../../../scripts/wait-for-cluster.sh')}:${cmdWait}`

‎bin/cmds/test_cmds/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ exports.handler = async (argv) => {
8282
*/
8383
let client;
8484
let dockerExec;
85-
if (argv.http) {
85+
if (argv.auto_compose && argv.http) {
8686
const getSocketId = async (attempt = 0) => {
8787
const { stdout } = await execAsync('docker', ['logs', container]);
8888
const lines = stdout.split('\n');

0 commit comments

Comments
 (0)
Please sign in to comment.