It fails without the patch.
On Feb 4, 2014 5:18 PM, "Dale Harvey" <notifications@github.com> wrote:

> In tests/test.changes.js:
>
> > @@ -1040,3 +1040,20 @@ asyncTest("Closing db dosent cause a crash if changes cancelled", function (){
> >      });
> >    });
> >  });
> > +asyncTest("cancel changes since latest", 1, function (){
> > +  testUtils.initTestDB(this.name, function (err, db) {
> > +    var x;
> > +    function onChange(c) {
> > +        ok(c);
> > +        x.cancel();
> > +        db.post( { should_trigger_change: false });
> > +        setTimeout(function(){
> > +          start();
> > +        },0);
>
> This test cant fail right? the related non 'latest' test (
> https://github.com/daleharvey/pouchdb/blob/master/tests/test.changes.js#L681)
> keeps count of how many onChange calls were made, I think that is needed
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/daleharvey/pouchdb/pull/1299/files#r9441667>
> .
>