Skip to content

Commit cc572a2

Browse files
authored
update tests for added socket object
1 parent acafff5 commit cc572a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import socket
23
import unittest
34

45

@@ -804,6 +805,7 @@ def test_get_environment_values(self):
804805
"SERVER_PROTOCOL",
805806
"SERVER_SOFTWARE",
806807
"waitress.client_disconnected",
808+
"waitress.socket",
807809
"wsgi.errors",
808810
"wsgi.file_wrapper",
809811
"wsgi.input",
@@ -960,6 +962,7 @@ class DummyChannel:
960962
adj = DummyAdj()
961963
creation_time = 0
962964
addr = ("127.0.0.1", 39830)
965+
socket = socket.socket()
963966

964967
def check_client_disconnected(self):
965968
# For now, until we have tests handling this feature

0 commit comments

Comments
 (0)