summaryrefslogtreecommitdiffhomepage
path: root/test/test_node_application.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_node_application.py48
1 files changed, 1 insertions, 47 deletions
diff --git a/test/test_node_application.py b/test/test_node_application.py
index c8c3a444..b277dc3a 100644
--- a/test/test_node_application.py
+++ b/test/test_node_application.py
@@ -1,9 +1,8 @@
import re
import pytest
-
-from conftest import waitforfiles
from unit.applications.lang.node import TestApplicationNode
+from unit.utils import waitforfiles
class TestNodeApplication(TestApplicationNode):
@@ -222,22 +221,6 @@ class TestNodeApplication(TestApplicationNode):
assert 'X-Header' not in headers, 'insensitive'
assert 'X-header' not in headers, 'insensitive 2'
- def test_node_application_promise_handler(self, temp_dir):
- self.load('promise_handler')
-
- assert (
- self.post(
- headers={
- 'Host': 'localhost',
- 'Content-Type': 'text/html',
- 'Connection': 'close',
- },
- body='callback',
- )['status']
- == 200
- ), 'promise handler request'
- assert waitforfiles(temp_dir + '/node/callback'), 'promise handler'
-
def test_node_application_promise_handler_write_after_end(self):
self.load('promise_handler')
@@ -270,35 +253,6 @@ class TestNodeApplication(TestApplicationNode):
), 'promise end request'
assert waitforfiles(temp_dir + '/node/callback'), 'promise end'
- def test_node_application_promise_multiple_calls(self, temp_dir):
- self.load('promise_handler')
-
- self.post(
- headers={
- 'Host': 'localhost',
- 'Content-Type': 'text/html',
- 'Connection': 'close',
- },
- body='callback1',
- )
-
- assert waitforfiles(
- temp_dir + '/node/callback1'
- ), 'promise first call'
-
- self.post(
- headers={
- 'Host': 'localhost',
- 'Content-Type': 'text/html',
- 'Connection': 'close',
- },
- body='callback2',
- )
-
- assert waitforfiles(
- temp_dir + '/node/callback2'
- ), 'promise second call'
-
@pytest.mark.skip('not yet')
def test_node_application_header_name_valid(self):
self.load('header_name_valid')