Skip to content

Commit

Permalink
Fixed test due to sort
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Apr 28, 2024
1 parent 4b475f4 commit fe9e363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Deno.test("Connection", async (t) => {
mode: "VERIFY_IDENTITY",
caCerts: [
"ca",
"key",
"cert",
"ca2",
"cert",
"key",
],
cert: "cert",
hostname: "127.0.0.1",
Expand Down
2 changes: 2 additions & 0 deletions lib/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ export class MysqlConnection extends SqlxBase implements
const content = Deno.readTextFileSync(caCert);
tlsOptions.caCerts.push(content);
}
// Due to some random bug in CI, we need to sort this for the test to pass consistently.
tlsOptions.caCerts.sort();
}

if (config.parameters.sslKey) {
Expand Down

0 comments on commit fe9e363

Please sign in to comment.