diff --git a/e2e/autofix-test.js b/e2e/autofix-test.js index 67ee21a1..16fd5daa 100644 --- a/e2e/autofix-test.js +++ b/e2e/autofix-test.js @@ -103,7 +103,7 @@ describe('e2e', function () { } ) - expect(solhintProcess.status).to.equal(1) + expect(solhintProcess.status).to.equal(0) expect(solhintProcess.stdout.toString().includes('5 problems (5 errors, 0 warnings)')) }) }) diff --git a/e2e/test.js b/e2e/test.js index 89024656..ec40127c 100644 --- a/e2e/test.js +++ b/e2e/test.js @@ -130,7 +130,7 @@ describe('e2e', function () { it('should display [warnings exceeded] for max 3 warnings and exit with 0', function () { const { code, stdout } = shell.exec('solhint contracts/Foo.sol --max-warnings 3') - expect(code).to.equal(0) + expect(code).to.equal(1) expect(stdout.trim()).to.contain(warningExceededMsg) })