Skip to content

Commit

Permalink
Fixed unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
denisenkom committed Jan 27, 2024
1 parent 14b0284 commit b04d08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pytds/tds_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ def process_prelogin(self, login: _TdsLogin) -> None:
size = len(p)
if size <= 0 or resp_header.type != tds_base.PacketType.REPLY:
self.bad_stream(
"Invalid packet type: {0}, expected PRELOGIN(4)".format(
"Invalid packet type: {0}, expected REPLY(4)".format(
self._reader.packet_type
)
)
Expand Down
4 changes: 2 additions & 2 deletions tests/simple_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def handle(self):
except OpenSSL.SSL.WantReadError:
pass
else:
w.begin_packet(pytds.tds_base.PacketType.REPLY)
w.begin_packet(pytds.tds_base.PacketType.PRELOGIN)
w.write(buf)
w.flush()

Expand All @@ -195,7 +195,7 @@ def handle(self):
except OpenSSL.SSL.WantReadError:
pass
else:
w.begin_packet(pytds.tds_base.PacketType.REPLY)
w.begin_packet(pytds.tds_base.PacketType.PRELOGIN)
w.write(buf)
w.flush()

Expand Down

0 comments on commit b04d08e

Please sign in to comment.