Skip to content

Commit

Permalink
Check high water mark.
Browse files Browse the repository at this point in the history
See #10.
  • Loading branch information
flatheadmill committed Jun 22, 2014
1 parent e9a68bc commit 76c8eef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/staccato/write.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ require('proof')(2, function (step) {
staccato.close(step())
}, function () {
var writable
staccato = new Staccato(writable = createWritable(write), true)
staccato = new Staccato(writable = createWritable(write, 1), true)
staccato.ready(step())
writable.emit('open')
}, function () {
staccato.write(new Buffer(1024), step())
}, function () {
staccato.write(new Buffer(1024), step())
}, function () {
ok(1, 'opened')
staccato.close(step())
Expand Down

0 comments on commit 76c8eef

Please sign in to comment.