Skip to content

Commit

Permalink
fixup Some types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Mar 9, 2022
1 parent 5243c5c commit 367a9ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/http1_tests.py
Expand Up @@ -148,8 +148,10 @@ def get_request(self) -> Tuple[socket.socket, Any]:
self._client_sockets.append(sock)
return sock, addr

def shutdown_request(self, request: socket.socket) -> None:
def shutdown_request(self, request) -> None:
"""Forget the client socket"""
assert isinstance(request, socket.socket)

self._client_sockets.remove(request)
super().shutdown_request(request) # type: ignore[misc] # error: "shutdown_request" undefined in superclass

Expand Down
8 changes: 8 additions & 0 deletions tests/system_tests_bad_configuration.py
Expand Up @@ -26,6 +26,8 @@
import os
from threading import Timer
from subprocess import PIPE, STDOUT
from typing import ClassVar

from system_test import TestCase, Qdrouterd, TIMEOUT, Process


Expand All @@ -36,6 +38,12 @@ class RouterTestBadConfiguration(TestCase):
well defined, but are not supposed to cause a crash to the router
process.
"""

config: ClassVar[Qdrouterd.Config]
name: ClassVar[str]
unresolvable_host_name: ClassVar[str]
router: ClassVar[Qdrouterd]

@classmethod
def setUpClass(cls) -> None:
"""Set up router instance configuration to be used for testing."""
Expand Down

0 comments on commit 367a9ad

Please sign in to comment.