diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/node/write_before_write_head/app.js | 1 | ||||
-rw-r--r-- | test/test_node_application.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/node/write_before_write_head/app.js b/test/node/write_before_write_head/app.js index 9fe3a58d..6e3fb9a9 100755 --- a/test/node/write_before_write_head/app.js +++ b/test/node/write_before_write_head/app.js @@ -3,4 +3,5 @@ require('unit-http').createServer(function (req, res) { res.write('blah'); res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end(); }).listen(7080); diff --git a/test/test_node_application.py b/test/test_node_application.py index a9f5b8a3..05b518f5 100644 --- a/test/test_node_application.py +++ b/test/test_node_application.py @@ -120,10 +120,10 @@ class TestUnitNodeApplication(unit.TestUnitApplicationNode): self.assertTrue(self.waitforfiles(self.testdir + '/node/callback'), 'write callback') - def test_node_application_write_before_writeHead(self): + def test_node_application_write_before_write_head(self): self.load('write_before_write_head') - self.get() + self.assertEqual(self.get()['status'], 200, 'write before writeHead') def test_node_application_double_end(self): self.load('double_end') |