aboutsummaryrefslogtreecommitdiff
path: root/tests/tco-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tco-test.c')
-rw-r--r--tests/tco-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/tco-test.c b/tests/tco-test.c
index 8ab43d742a..cc7663dd8e 100644
--- a/tests/tco-test.c
+++ b/tests/tco-test.c
@@ -237,9 +237,8 @@ static void test_tco_max_timeout(void)
static QDict *get_watchdog_action(void)
{
- QDict *ev = qmp("");
+ QDict *ev = qmp_eventwait_ref("WATCHDOG");
QDict *data;
- g_assert(!strcmp(qdict_get_str(ev, "event"), "WATCHDOG"));
data = qdict_get_qdict(ev, "data");
QINCREF(data);