Bug 13278: t/Search.t shouldn't depend on the DB
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 18 Nov 2014 04:05:30 +0000 (01:05 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 21:11:54 +0000 (18:11 -0300)
commit48da54977a93a8ba588054ba7ccc605ef46820e8
tree36a7c8e78cb1f5d07f029bb19608b56449eb7b2e
parent719c1335d878cc2ab94af262bea4540daabc5d55
Bug 13278: t/Search.t shouldn't depend on the DB

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

To test (MySQL still stopped)
- Apply the patch
- Run
  $ prove t/Search.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 advertised.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/Search.t