1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

integration test fixes

Signed-off-by: Jari Kolehmainen <jkolehmainen@mirantis.com>
This commit is contained in:
Jari Kolehmainen 2020-06-29 17:17:59 +00:00
parent 7ca7e44287
commit 3b33ea853b

View File

@ -51,7 +51,7 @@ describe("app start", () => {
})
it('allows to add a cluster', async () => {
const status = spawnSync("minikube status", {shell: true})
const status = spawnSync("minikube status || sudo minikube status", {shell: true})
if (status.status !== 0) {
console.warn("minikube not running, skipping test")
return
@ -64,7 +64,7 @@ describe("app start", () => {
})
it('allows to create a pod', async () => {
const status = spawnSync("minikube status", {shell: true})
const status = spawnSync("minikube status || sudo minikube status", {shell: true})
if (status.status !== 0) {
console.warn("minikube not running, skipping test")
return