Skip to content

Commit

Permalink
fixup! Async.Promise: Fix test descriptions and variable names, more …
Browse files Browse the repository at this point in the history
…checks
  • Loading branch information
rhysd committed Dec 30, 2017
1 parent 3e1638a commit 23e695d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Async/Promise.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ Describe Async.Promise
Assert Equals(reason, 'error')
End

It should be pending when neither resolve() nor reject() is called
It should be pending forever when neither resolve() nor reject() is called
let l = l:
let done = 0
let p = P.new({-> 42})
Assert Equals(p._state, PENDING)
let p = p.then({-> extend(l, {'done' : 1})})
let p = p.catch({-> extend(l, {'done' : 2})})
sleep 30m
Assert Equals(p._state, PENDING)
Assert Equals(done, 0)
End
Expand Down

0 comments on commit 23e695d

Please sign in to comment.