MDL-47608 cachestore_mongo: fixed unit test error
authorSam Hemelryk <sam@moodle.com>
Wed, 8 Oct 2014 20:12:59 +0000 (09:12 +1300)
committerSam Hemelryk <sam@moodle.com>
Sun, 19 Oct 2014 22:03:57 +0000 (11:03 +1300)
commitc1db791e98476c8f371d48d41d228eeb11ceb1a1
tree3203421bfe8935acc2e7aedd704b998c7d25b863
parentb49de5d93009a421731af5a80e1dec6eb46c9ca9
MDL-47608 cachestore_mongo: fixed unit test error

If you configured your site to run mongo unit tests and had
the mongo extension and backend installed but did not have the
mongo service running you would get a fatal error when running
the unit tests.
That problem has been fixed by checking the mongo test instance
is ready before returning it.
cache/stores/mongodb/lib.php