Skip to content

Commit

Permalink
fix test case for mysql > 8
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <[email protected]>
  • Loading branch information
wzrdtales committed Sep 10, 2023
1 parent a3eeda2 commit b2e5d3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/mysql_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,12 @@ lab.experiment('mysql', () => {
expect(primaryColumn.meta.column_key).to.equal('PRI');

// Testing the "after" constraint
expect(columns[1].getName()).to.equal('date');
// mysql > 8 does not return the same way anymore,
// results may be in random order, so we check explicitly
// the element with ordinal position 2
expect(
columns.find((x) => x.meta.ordinal_position === 2).getName()
).to.equal('date');
});
});

Expand Down

0 comments on commit b2e5d3d

Please sign in to comment.