From 70e420bcbe03f72ecbcebc8788483aeb2087bc64 Mon Sep 17 00:00:00 2001
From: Richard Pringle <rpringle@ca.ibm.com>
Date: Thu, 29 Sep 2016 15:20:29 -0400
Subject: [PATCH] Add keep-alive setting to wrong content type test.

---
 test/upload-download.test.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/test/upload-download.test.js b/test/upload-download.test.js
index 8950512..4b82d5c 100644
--- a/test/upload-download.test.js
+++ b/test/upload-download.test.js
@@ -190,17 +190,16 @@ describe('storage service', function () {
       });
   });
 
-  it('uploads file wrong content type', function (done) {
-
+  it('uploads file wrong content type', function(done) {
     request('http://localhost:' + app.get('port'))
       .post('/imageContainers/album1/upload')
       .attach('image', path.join(__dirname, './fixtures/app.js'))
       .set('Accept', 'application/json')
+      .set('Connection', 'keep-alive')
       .expect('Content-Type', /json/)
-      .expect(200, function (err, res) {
-        assert(err);
+      .expect(500, function(err, res) {
         assert(res.body.error.message.indexOf('is not allowed') !== -1);
-        done();
+        done(err);
       });
   });