X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Ffrontend%2Fquery_test.c;h=2160255d39f4ed0285e60a7fc0f0a502e3d107b9;hp=7e15502096a04ed83358c1fb41f5aab8e14c098a;hb=740f1a8839faaf3033ea23f4cf2eea0dc0209d13;hpb=c2f7813397319e930c81c4f64b213bec64549167 diff --git a/t/unit/frontend/query_test.c b/t/unit/frontend/query_test.c index 7e15502..2160255 100644 --- a/t/unit/frontend/query_test.c +++ b/t/unit/frontend/query_test.c @@ -504,7 +504,7 @@ static struct { }, { "STORE service attribute 'h2'.'s1'.'aA' 'vA'", - 0, SDB_CONNECTION_OK, 43, 0, "Successfully stored service attribute s1.aA", + 0, SDB_CONNECTION_OK, 46, 0, "Successfully stored service attribute h2.s1.aA", }, { "STORE service attribute 'h2'.'x1'.'aA' 'vA'", @@ -520,7 +520,7 @@ static struct { }, { "STORE metric attribute 'h1'.'m1'.'aA' 'vA'", - 0, SDB_CONNECTION_OK, 42, 0, "Successfully stored metric attribute m1.aA", + 0, SDB_CONNECTION_OK, 45, 0, "Successfully stored metric attribute h1.m1.aA", }, { "STORE metric attribute 'h1'.'x1'.'aA' 'vA'", @@ -544,8 +544,9 @@ START_TEST(test_query) check = sdb_fe_query(conn); fail_unless(check == query_data[_i].expected, - "sdb_fe_query(%s) = %d; expected: %d", - query_data[_i].query, check, query_data[_i].expected); + "sdb_fe_query(%s) = %d; expected: %d (err: %s)", + query_data[_i].query, check, query_data[_i].expected, + sdb_strbuf_string(conn->errbuf)); data = sdb_strbuf_string(MOCK_CONN(conn)->write_buf); len = sdb_strbuf_len(MOCK_CONN(conn)->write_buf);