Skip to content

Commit

Permalink
Adding test coverage for server_id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed Aug 4, 2024
1 parent d65423f commit a067164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def test_database_misc_methods(client, sys_db, db, bad_db, cluster, secret, db_v

# Reset Log Settings
if db.version() >= "3.12.1":
if cluster:
server_id = sys_db.cluster.server_id()
assert isinstance(sys_db.reset_log_levels(server_id), dict)

result = sys_db.reset_log_levels()
assert result == default_log_levels
with assert_raises(ServerLogLevelResetError):
Expand Down

0 comments on commit a067164

Please sign in to comment.