Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/System/plugins/db.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ function queryTestDB(joomlaQuery, config) {
return new Promise((resolve, reject) => {
// Create the connection and connect
let connectionConfig;
/* Verify if the connection is a Unix socket by checking for the "unix:/" prefix.
* MariaDB and MySQL JS drivers do not support this prefix, so it must be removed.
* We standardise the use of this prefix with the PHP driver by handling it here.
*/
/* Verify if the connection is a Unix socket by checking for the "unix:/" prefix.
* MariaDB and MySQL JS drivers do not support this prefix, so it must be removed.
* We standardise the use of this prefix with the PHP driver by handling it here.
*/
if (config.env.db_host.startsWith('unix:/')) {
// If the host is a Unix socket, extract the socket path
connectionConfig = {
Expand Down