From 9c5feda33d30de8bf9e2327996fad8e0a99ee99e Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 2 Feb 2015 12:55:31 -0800 Subject: [PATCH] Cleanup output of tests --- test/core/end2end/cq_verifier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/core/end2end/cq_verifier.c b/test/core/end2end/cq_verifier.c index b5368fffbb8..904ed772836 100644 --- a/test/core/end2end/cq_verifier.c +++ b/test/core/end2end/cq_verifier.c @@ -243,7 +243,9 @@ static void metadata_expectation(gpr_strvec *buf, metadata *md) { gpr_asprintf(&tmp, "%c%s:%s", i ? ',' : '{', md->keys[i], md->values[i]); gpr_strvec_add(buf, tmp); } - gpr_strvec_add(buf, gpr_strdup("}")); + if (md->count) { + gpr_strvec_add(buf, gpr_strdup("}")); + } } }