Skip to content

Commit

Permalink
refactor: rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Feb 19, 2024
1 parent 6d2e98a commit 17bd230
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions tests/test_protocol_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ID_GAME_MESSAGE_1 = MessageIdentifiers.ID_USER_PACKET_ENUM + 1


def do_test(server_ver: int, client_ver: int):
def run(server_ver: int, client_ver: int):
server = RakPeer()
server.max_incoming_connections = 10
server.startup(max_connections=10, protocol_version=server_ver)
Expand All @@ -32,16 +32,16 @@ def do_test(server_ver: int, client_ver: int):


def test_compatible_1():
do_test(6, 6)
run(6, 6)


def test_compatible_2():
do_test(11, 11)
run(11, 11)


def test_incompatible_1():
do_test(7, 8)
run(7, 8)


def test_incompatible_2():
do_test(10, 9)
run(10, 9)
File renamed without changes.

0 comments on commit 17bd230

Please sign in to comment.