mozilla/browserid — Issue #1246: Backend unit tests failing to connect to mysql
Author: jbonacci
Created: 2012-03-02 20:21:51+00:00
State: open

This seems like a new issue to me, although I have not run the backend tests for a few weeks...

Did a local install using the 2012-03-01 branch rather than the Dev branch.

$ npm test
/home/mozroot/browserid/lib/db.js:14
if (!ready) throw "database not ready. did you call open()?";
^
database not ready. did you call open()?
CANNOT TEST 'test_mysql' ENVIRONMENT: can't connect to the database

mysql is running, as before:
root 2066 0.0 0.1 108256 1480 ? S 11:58 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 2158 0.0 2.2 377520 22548 ? Sl 11:58 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock

Seen this on local installs to Mac and Linux.