UNPKG

wait-for-mysql

Version:
28 lines (16 loc) 611 B
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()