If chunk is EOF, the handler is switched back to the original one immediately after this method returns.  So switching it to the ignore one will have no effect.  Also, it's almost impossible to reliably test, since feeds the last chunk immediately after feeding the second last chunk, so you have to some how redeem the promise between those two things happening, and there's no context switch between them.