#1010457 ftbfs: test failure will prevent nodejs 16 migration

#1010457#5
Date:
2022-05-01 22:10:50 UTC
From:
To:
This module is old and uses internal nodejs api.
Also it still assumes old streams model:
it is a miracle it has not many more tests failures.

I attached a NON-working patch, to help anyone willing to give it a shot.


This is the failure:

AssertionError [ERR_ASSERTION]: after calling flush, writable stream should not need to drain
    at process.<anonymous> (/<<PKGBUILDDIR>>/test/test-zlib-flush-drain.js:41:10)
    at Object.onceWrapper (node:events:646:26)
    at process.emit (node:events:526:28) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: true,
  expected: false,
  operator: '=='
}
test/test-zlib-flush-drain.js