Skip to content

Commit

Permalink
Fix mysql settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-normand committed Aug 10, 2023
1 parent a79721e commit e2a6bf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mysql/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def test_collect_mysql_settings(aggregator, dbm_instance, dd_run_check):
mysql_check = MySql(common.CHECK_NAME, {}, instances=[dbm_instance])
dd_run_check(mysql_check)
dbm_metadata = aggregator.get_event_platform_events("dbm-metadata")
event = dbm_metadata[0]
event = next(x for x in dbm_metadata if x['kind'] == 'mysql_variables')
assert event is not None
assert event['host'] == "stubbed.hostname"
assert event['dbms'] == "mysql"
assert event['kind'] == "mysql_variables"
Expand Down

0 comments on commit e2a6bf2

Please sign in to comment.