wait-for-mysql
Version:
Wait for a MySQL connection to become available
28 lines (16 loc) • 611 B
text/coffeescript
assert = require 'assert'
durations = require 'durations'
waitForMysql = require '../src/index.coffee'
describe "wait-for-mysql", ->
it "should retry until mysql is up", (done) ->
watch = durations.stopwatch().start()
# TODO: test wait for connection
done()
it "should retury until the query succeeds", (done) ->
watch = durations.stopwatch()
# TODO: test wait for successful query
done()
it "should timeout after waiting the max timeout", (done) ->
watch = durations.stopwatch().start()
# TODO: test timeout
done()