mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: update all
This commit is contained in:
committed by
Rainer Killinger
parent
d27bf7ea94
commit
aeebbf9656
@@ -236,14 +236,17 @@ upstream 1__0___d_ {
|
||||
await getContainers();
|
||||
return false;
|
||||
} catch (e) {
|
||||
if (e.message.startsWith('No')) {
|
||||
if ((e as Error).message.startsWith('No')) {
|
||||
// Result, if docker is installed
|
||||
expect(e.message).to.equal(`No running docker containers found.
|
||||
expect((e as Error).message).to.equal(`No running docker containers found.
|
||||
|
||||
Please check if docker is running and Node.js can access the docker socket (/var/run/docker.sock)`);
|
||||
} else {
|
||||
// Result, if docker is not installed
|
||||
expect(e.message).to.equal(`connect ENOENT /var/run/docker.sock`);
|
||||
expect([
|
||||
new Error(`connect ENOENT /var/run/docker.sock`).message,
|
||||
new Error('connect EACCES /var/run/docker.sock').message,
|
||||
]).to.include((e as Error).message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,7 +261,7 @@ Please check if docker is running and Node.js can access the docker socket (/var
|
||||
await getTemplateView(containersWithSameVersion);
|
||||
return false;
|
||||
} catch (e) {
|
||||
expect(e.message).to.equal(
|
||||
expect((e as Error).message).to.equal(
|
||||
`Multiple backends for one version found.`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user