Skip to content

Commit 2f07b62

Browse files
committed
test: fix error message expectation
1 parent fabbc25 commit 2f07b62

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/integration/forcePush.integration.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,8 @@ describe('Force Push Integration Test', () => {
133133
expect(diffStep.errorMessage).to.be.a('string');
134134
expect(diffStep.errorMessage.length).to.be.greaterThan(0);
135135
expect(diffStep.errorMessage).to.satisfy(
136-
(msg) =>
137-
msg.includes('fatal:') ||
138-
msg.includes('unknown revision') ||
139-
msg.includes('bad revision'),
140-
'Error message should contain git-specific error patterns',
136+
(msg) => msg.includes('fatal:') && msg.includes('Invalid revision range'),
137+
'Error message should contain git diff specific error for invalid SHA',
141138
);
142139

143140
// scanDiff should not block on missing diff due to error

0 commit comments

Comments
 (0)