Skip to content

Commit 98e4288

Browse files
committed
Fix running tests in vagrant
1 parent 462e640 commit 98e4288

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sh.env.PROD_SERVER = '127.0.0.1';
1414
sh.env.PROD_SERVER_PORT = '3500';
1515
sh.env.PROD_SERVER_PEM = path.resolve(mupDir, 'tests/fixtures/ssh/new');
1616

17-
var volume = `-v ${keyPath}:/root/.ssh/authorized_keys`;
17+
var volume = `-v ${keyPath}:/root/.ssh/authorized_keys2`;
1818
var publish = '-p 127.0.0.1:3500:22';
1919
var image = argv.skipPull ? 'mup-tests-server' : 'mup-tests-server-docker';
2020

@@ -23,6 +23,7 @@ var containerId = sh.exec(
2323
).output.trim();
2424

2525
sh.exec(`docker exec ${containerId} sudo service docker start`);
26+
sh.exec(`docker exec ${containerId} cp /root/.ssh/authorized_keys2 /root/.ssh/authorized_keys`);
2627

2728
var watch = argv.watch ? ' --watch' : '';
2829
var files = argv.path ? argv.path : ' src/**/__tests__/**/*.js';

0 commit comments

Comments
 (0)