From 094f7426571c1361301716c193293dba38ba90ed Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 12 Jun 2012 01:56:48 +0200 Subject: [PATCH] test-http-get-pipeline-problem: don't fail if there are stray files in the temp dir --- test/simple/test-http-get-pipeline-problem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-http-get-pipeline-problem.js b/test/simple/test-http-get-pipeline-problem.js index 1074adb4a7..720ce4b89c 100644 --- a/test/simple/test-http-get-pipeline-problem.js +++ b/test/simple/test-http-get-pipeline-problem.js @@ -24,7 +24,7 @@ // We are demonstrating a problem with http.get when queueing up many // transfers. The server simply introduces some delay and sends a file. -// Note this is demonstarted with connection: close. +// Note this is demonstrated with connection: close. var common = require('../common'); var assert = require('assert'); var http = require('http'); @@ -89,7 +89,7 @@ var checkedFiles = false; function checkFiles() { // Should see 1.jpg, 2.jpg, ..., 100.jpg in tmpDir var files = fs.readdirSync(common.tmpDir); - assert.equal(total, files.length); + assert(total <= files.length); for (var i = 0; i < total; i++) { var fn = i + '.jpg';