Run of fresh-snapshots for node-end-of-stream

Try this locally (using silver-platter):

debian-svp new-upstream --snapshot node-end-of-stream 

Merge these changes:

git pull https://janitor.debian.net/git/node-end-of-stream new-upstream-snapshot

Summary

Merged new upstream version: 1.4.1+git20180524.9f811e0 (was: 1.4.1).

Diff

=== added file '.travis.yml'
--- a/.travis.yml	1970-01-01 00:00:00 +0000
+++ b/.travis.yml	2018-05-24 15:21:26 +0000
@@ -0,0 +1,6 @@
+language: node_js
+node_js:
+- '10'
+- '8'
+- '6'
+- '4'

=== modified file 'README.md'
--- a/README.md	2017-05-30 15:39:42 +0000
+++ b/README.md	2019-08-28 17:12:47 +0000
@@ -4,6 +4,8 @@
 
 	npm install end-of-stream
 
+[![Build status](https://travis-ci.org/mafintosh/end-of-stream.svg?branch=master)](https://travis-ci.org/mafintosh/end-of-stream)
+
 ## Usage
 
 Simply pass a stream and a callback to the `eos`.

=== modified file 'debian/changelog'
--- a/debian/changelog	2019-01-07 09:07:56 +0000
+++ b/debian/changelog	2019-08-28 17:13:01 +0000
@@ -1,5 +1,6 @@
-node-end-of-stream (1.4.1-1) UNRELEASED; urgency=medium
+node-end-of-stream (1.4.1+git20180524.9f811e0-1) UNRELEASED; urgency=medium
 
+  [ Paolo Greppi ]
   * New upstream version
   * Update Vcs fields for migration to https://salsa.debian.org/
   * Bump standard version
@@ -9,7 +10,11 @@
   * Bump standard version
   * Destroy rather than close stream (Closes: #918424)
 
- -- Paolo Greppi <paolo.greppi@libpf.com>  Wed, 21 Nov 2018 18:00:22 +0100
+  [ Debian Janitor ]
+  * New upstream snapshot.
+  * Drop patch 00-fix_test.diff, present upstream.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Wed, 28 Aug 2019 17:12:40 +0000
 
 node-end-of-stream (1.4.0-1) unstable; urgency=medium
 

=== removed file 'debian/patches/00-fix_test.diff'
--- a/debian/patches/00-fix_test.diff	2019-01-07 09:07:56 +0000
+++ b/debian/patches/00-fix_test.diff	1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
-Description: Destroy rather than close stream.
-  Fixes #918424.
-  Drop this patch with next upstream version !
-Forwarded: not-needed
-Author: Paolo Greppi <paolo.greppi@libpf.com>
-
-Index: node-end-of-stream/test.js
-===================================================================
---- node-end-of-stream.orig/test.js
-+++ node-end-of-stream/test.js
-@@ -13,7 +13,7 @@ eos(ws, function(err) {
- 	assert(this === ws);
- 	if (!expected) process.exit(0);
- });
--ws.close();
-+ws.destroy();
- 
- var rs1 = fs.createReadStream('/dev/random');
- eos(rs1, function(err) {

=== modified file 'debian/patches/series'
--- a/debian/patches/series	2019-01-07 09:07:56 +0000
+++ b/debian/patches/series	2019-08-28 17:13:01 +0000
@@ -1,1 +0,0 @@
-00-fix_test.diff

=== modified file 'test.js'
--- a/test.js	2017-05-30 15:39:42 +0000
+++ b/test.js	2019-08-28 17:12:47 +0000
@@ -1,10 +1,11 @@
 var assert = require('assert');
 var eos = require('./index');
 
-var expected = 8;
+var expected = 10;
 var fs = require('fs');
 var cp = require('child_process');
 var net = require('net');
+var http = require('http');
 
 var ws = fs.createWriteStream('/dev/null');
 eos(ws, function(err) {
@@ -13,21 +14,21 @@
 	assert(this === ws);
 	if (!expected) process.exit(0);
 });
-ws.close();
+ws.destroy();
 
-var rs1 = fs.createReadStream('/dev/random');
+var rs1 = fs.createReadStream('/dev/urandom');
 eos(rs1, function(err) {
 	expected--;
 	assert(!!err);
 	assert(this === rs1);
 	if (!expected) process.exit(0);
 });
-rs1.close();
+rs1.destroy();
 
 var rs2 = fs.createReadStream(__filename);
 eos(rs2, function(err) {
 	expected--;
-	assert(!err);
+	assert.ifError(err);
 	assert(this === rs2);
 	if (!expected) process.exit(0);
 });
@@ -35,6 +36,7 @@
 
 var rs3 = fs.createReadStream(__filename);
 eos(rs3, function(err) {
+	assert.ifError(err);
 	assert(this === rs);
 	throw new Error('no go');
 })();
@@ -43,7 +45,7 @@
 var exec = cp.exec('echo hello world');
 eos(exec, function(err) {
 	expected--;
-	assert(!err);
+	assert.ifError(err);
 	assert(this === exec);
 	if (!expected) process.exit(0);
 });
@@ -51,7 +53,7 @@
 var spawn = cp.spawn('echo', ['hello world']);
 eos(spawn, function(err) {
 	expected--;
-	assert(!err);
+	assert.ifError(err);
 	assert(this === spawn);
 	if (!expected) process.exit(0);
 });
@@ -65,21 +67,41 @@
 });
 
 var server = net.createServer(function(socket) {
-	eos(socket, function() {
+	eos(socket, function(err) {
 		expected--;
+		assert(!!err);
 		assert(this === socket);
 		if (!expected) process.exit(0);
 	});
 	socket.destroy();
 }).listen(30000, function() {
 	var socket = net.connect(30000);
-	eos(socket, function() {
+	eos(socket, function(err) {
 		expected--;
+		assert.ifError(err);
 		assert(this === socket);
 		if (!expected) process.exit(0);
 	});
 });
 
+var server2 = http.createServer(function(req, res) {
+	eos(res, function(err) {
+		expected--;
+		assert.ifError(err);
+	});
+	res.end();
+}).listen(function() {
+	var port = server2.address().port;
+	http.get('http://localhost:' + port, function(res) {
+		eos(res, function(err) {
+			expected--;
+			assert.ifError(err);
+			server2.close();
+		});
+		res.resume();
+	});
+});
+
 setTimeout(function() {
 	assert(expected === 0);
 	process.exit(0);

Full build log Full worker log