Skip to content

Commit 646cecf

Browse files
YaroslavYaroslavtsevYaroslavYaroslavtsev
YaroslavYaroslavtsev
authored and
YaroslavYaroslavtsev
committed
update
1 parent a8804b9 commit 646cecf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: spec/ImptTestHelper.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Utils = require('../lib/util/Utils');
3333
const UserInteractor = require('../lib/util/UserInteractor');
3434
const child_process = require('child_process');
3535

36-
const TIMEOUT_MS = 999999;
36+
const TIMEOUT_MS = 10000000;
3737
const TESTS_EXECUTION_FOLDER = `${__dirname}/../__test${process.env.IMPT_FOLDER_SUFFIX ? process.env.IMPT_FOLDER_SUFFIX : ''}`;
3838
const KEY_ANSWER = {
3939
CTRL_C: '\x03',
@@ -255,6 +255,7 @@ class ImptTestHelper {
255255

256256
// Checks success return code of the command
257257
static checkSuccessStatus(commandOut) {
258+
expect(commandOut.output).not.toMatch(UserInteractor.ERRORS.ACCESS_FAILED);
258259
expect(commandOut.code).toEqual(0);
259260
}
260261

@@ -271,7 +272,7 @@ class ImptTestHelper {
271272

272273
// Checks if the command output contains the specified attribute name and value
273274
static checkAttribute(commandOut, attrName, attrValue) {
274-
expect(commandOut.output).toMatch(new RegExp(`${attrName}"?:\\s+"?${attrValue.replace(new RegExp(/"/g), '\\\\?"')}"?`));
275+
expect(commandOut.output).toMatch(new RegExp(`${attrName}"?:\\s+"?${attrValue.replace(new RegExp(/([\^\[\.\$\{\*\(\\\+\)\|\?\<\>])/g),'\\$&').replace(new RegExp(/"/g), '\\\\?"')}"?`));
275276
}
276277

277278
// Checks if the command output contains the specified message for default or debug output mode

0 commit comments

Comments
 (0)