Skip to content

Commit 1584507

Browse files
committed
Test the language insensitive part of the error
Signed-off-by: Seb Julliand <[email protected]>
1 parent 1d00df8 commit 1584507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/tests/suites/content.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ describe('Content Tests', { concurrent: true }, () => {
236236
await connection.runSQL('select from qiws.qcustcdt');
237237
expect.fail('Should have thrown an error');
238238
} catch (e: any) {
239-
expect(e.message).toBe('Token . was not valid. Valid tokens: , FROM INTO. (42601)');
239+
expect(e.message.endsWith(': , FROM INTO. (42601)')).toBeTruthy();
240240
expect(e.sqlstate).toBe('42601');
241241
}
242242
});
@@ -622,7 +622,7 @@ describe('Content Tests', { concurrent: true }, () => {
622622
const shortName = Tools.makeid(8);
623623
const createLib = await connection.runCommand({ command: `RUNSQL 'create schema "${longName}" for ${shortName}' commit(*none)`, noLibList: true });
624624
if (createLib.code === 0) {
625-
await connection.runCommand({ command: `CRTSRCPF FILE(${shortName}/SFILE) MBR(MBR) TEXT('Test long library name')` });
625+
const result = await connection.runCommand({ command: `CRTSRCPF FILE(${shortName}/SFILE) MBR(MBR) TEXT('Test long library name')` });
626626

627627
const libraries = await content.getLibraries({ library: `${shortName}` });
628628
expect(libraries?.length).toBe(1);

0 commit comments

Comments
 (0)