Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 18 Nov 2014 03:59:49 +0000 (22:59 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 21:12:00 +0000 (18:12 -0300)
commit98fcda28ff119bc6ef6b35e5cd32e57f50870d6f
treed5edc0b716111c190f0953fbd952d8135f28dadf
parentb8a0eefc23fc32b5c43a18ad4e2ee9066c33680c
Bug 13277: t/SuggestionEngine_AuthorityFile.t shouldn't depend on the DB

To reproduce:
- Stop your MySQL server:
  $ sudo service mysql stop
- Run
  $ prove t/SuggestionEngine_AuthorityFile.t
=> FAIL: some tests fail because of mysql stopped

To test (MySQL still stopped)
- Apply the patch
- Run
  $ prove t/SuggestionEngine_AuthorityFile.t
=> SUCCESS: tests pass because the ycan be loaded regardless of
            the absence of the DB server
- Sign off :-D

Regards

Signed-off-by: Magnus Enger <digitalutvikling@gmail.com>
Turned off MySQL and ran the tests before and after the patch.
Works as advertized.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/SuggestionEngine_AuthorityFile.t