nodejs-idb-connector icon indicating copy to clipboard operation
nodejs-idb-connector copied to clipboard

test: cleanup test infrastructure

Open abmusse opened this issue 1 year ago • 1 comments

  1. Create our own libray/schema to hold test tables, procedures, etc
  2. No longer use QIWS.QCUSTCDT for insert tests (Use our own test tables)
  3. Add after/afterEach hooks to delete data inserted by test cases (remove created tables, etc)

I've noticed when running the test suite multiple times this test case in asyncStatementTest.js leads to assertion error here this is because it inserts into the QIWS.QCUSTCDT table each time and the number results increase. Therefore no way to assert that value is 1. One way to workaround this would be to check is the results are > 0. I would rather not insert into that table at all though and use our own tables. Cleaning up after the case is finished.

abmusse avatar Jun 20 '23 20:06 abmusse

:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.

github-actions[bot] avatar Jul 22 '23 01:07 github-actions[bot]