aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-02 12:55:31 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-02 12:55:31 -0800
commit9c5feda33d30de8bf9e2327996fad8e0a99ee99e (patch)
tree0465344853d9b7980fe8e4b21092a1db23db3100
parentd74fc6571cc29e2279d76b63bb159eb3551311b8 (diff)
Cleanup output of tests
-rw-r--r--test/core/end2end/cq_verifier.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/end2end/cq_verifier.c b/test/core/end2end/cq_verifier.c
index b5368fffbb..904ed77283 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("}"));
+ }
}
}