Skip to content

Commit

Permalink
test: change one iowatcher to a TODO
Browse files Browse the repository at this point in the history
Problem: iowatcher test 5 'iowatcher returns error correctly'
tries to create an iowatcher watching a stream directory that
isn't a directory to elicit an ENOTDIR error.  This lookup is
now performed in a continuation, not directly in kz_set_ready_cb().
The kz_ready_f callback should be called, and when the user's
kz_get() is called, it will fail with ENOTDIR.

Mark this test a TODO for now.
  • Loading branch information
garlick committed Apr 4, 2018
1 parent 4ee47b8 commit 83857c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/lua/t1003-iowatcher.t
Expand Up @@ -19,6 +19,7 @@ local iow, err = f:iowatcher {
key = "simpleval",
handler = function (iow, lines) end
}
todo ("error on dir lookup is now deferred kz_get from kz_ready_f callbackb", 1)
is (iow, nil, "iowatcher returns error correctly")

dir['iowatcher'] = nil
Expand Down

0 comments on commit 83857c8

Please sign in to comment.