From 2ca2792a65ff8dbcbcfeef00f59ea3cbd7925f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Fri, 19 Feb 2021 16:02:57 +0100 Subject: [PATCH] fix smoketest --- test/smoke/src/areas/notebook/notebook.test.ts | 2 +- test/smoke/src/areas/search/search.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/smoke/src/areas/notebook/notebook.test.ts b/test/smoke/src/areas/notebook/notebook.test.ts index 1d70ee93a89..e8dae86262b 100644 --- a/test/smoke/src/areas/notebook/notebook.test.ts +++ b/test/smoke/src/areas/notebook/notebook.test.ts @@ -16,7 +16,7 @@ export function setup() { after(async function () { const app = this.app as Application; cp.execSync('git checkout . --quiet', { cwd: app.workspacePathOrFolder }); - cp.execSync('git reset --hard origin/master --quiet', { cwd: app.workspacePathOrFolder }); + cp.execSync('git reset --hard HEAD --quiet', { cwd: app.workspacePathOrFolder }); }); afterEach(async function () { diff --git a/test/smoke/src/areas/search/search.test.ts b/test/smoke/src/areas/search/search.test.ts index 15257e6bfdb..77bcc40efb4 100644 --- a/test/smoke/src/areas/search/search.test.ts +++ b/test/smoke/src/areas/search/search.test.ts @@ -11,7 +11,7 @@ export function setup() { after(function () { const app = this.app as Application; cp.execSync('git checkout . --quiet', { cwd: app.workspacePathOrFolder }); - cp.execSync('git reset --hard origin/master --quiet', { cwd: app.workspacePathOrFolder }); + cp.execSync('git reset --hard HEAD --quiet', { cwd: app.workspacePathOrFolder }); }); it('searches for body & checks for correct result number', async function () {