summary refs log tree commit diff stats
path: root/tests/qmp-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmp-test.c')
-rw-r--r--tests/qmp-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/qmp-test.c b/tests/qmp-test.c
index 5ce886312a..b5f21dfa57 100644
--- a/tests/qmp-test.c
+++ b/tests/qmp-test.c
@@ -182,8 +182,7 @@ static void test_query(const void *data)
     } else {
         g_assert(error);
         g_assert_cmpint(qapi_enum_parse(QapiErrorClass_lookup, error_class,
-                                        QAPI_ERROR_CLASS__MAX, -1,
-                                        &error_abort),
+                                        -1, &error_abort),
                         ==, expected_error_class);
     }
     QDECREF(resp);