From 46982e68f7f38db64df6f0f4df0ab5522065992c Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 19 Aug 2022 16:31:54 +0200 Subject: [PATCH] Fixup tests --- test/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 6713668..254d446 100755 --- a/test/test.js +++ b/test/test.js @@ -155,8 +155,7 @@ describe('Application life cycle test', function () { function pushFile() { const env = Object.create(process.env); env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh'; - const defaultBranch = app.manifest.version === '1.24.0' ? 'main' : 'master'; - execSync(`touch newfile && git add newfile && git commit -a -mx && git push ssh://git@${app.fqdn}:${SSH_PORT}/${username}/${reponame} ${defaultBranch}`, + execSync(`touch newfile && git add newfile && git commit -a -mx && git push ssh://git@${app.fqdn}:${SSH_PORT}/${username}/${reponame} main`, { env: env, cwd: repodir }); fs.rmSync(repodir, { recursive: true, force: true }); }