     fail err
     manager.quit()
   debug 'yield from run_setup'
-  yield()
-
+  yield() if requested
+
+# Go get a certain key and compare it to the given expected value.
+# If only called with one argument, the key is assumed to be the
+# requested key for the test.
 wanted = (args..., expected) ->
   key = if args.length then args.join(':') else requested
   compare key, get(key), expected
 
+# Run the expectation blocks for the test; if an error is
+# raised, catch it and just fail the test with the error as
+# a message.
 run_expect = ->
   return if the_test.failed
   try

      msg += "#{prefix}[#{k}]\n#{prefix}  + #{JSON.stringify(b)}\n"
  msg

error_message = (key, parts) ->
  list = ["Key \"#{key}\" encountered an error"]
  for item in parts

  failed++
  false

# Call this to indicate a test has passed. Like `fail`, can
# be called multiple times per test.
pass = (msg) ->
  debug "#{the_test.name}: passed"
  passed++
  true

# Pause execution, which also pauses the fiber; returns
# after the given number of milliseconds. Other event handlers
# will still be active during this time.
wait = (time) ->
  setTimeout (->
    debug 'run from wait'
