summaryrefslogtreecommitdiff
path: root/tests/test_tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tables.c')
-rw-r--r--tests/test_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_tables.c b/tests/test_tables.c
index f7144dd..cf2509e 100644
--- a/tests/test_tables.c
+++ b/tests/test_tables.c
@@ -369,7 +369,7 @@ static void test_table_codec(FILE *out)
result = amqp_decode_table(decoding_bytes, &pool, &decoded,
&decoding_offset);
if (result < 0) {
- die("Table decoding failed: %s", amqp_error_string(-result));
+ die("Table decoding failed: %s", amqp_error_string2(result));
}
fprintf(out, "BBBBBBBBBB\n");
@@ -394,7 +394,7 @@ static void test_table_codec(FILE *out)
result = amqp_encode_table(encoding_result, &table, &offset);
if (result < 0) {
- die("Table encoding failed: %s", amqp_error_string(-result));
+ die("Table encoding failed: %s", amqp_error_string2(result));
}
if (offset != sizeof(pre_encoded_table))