aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-23 15:11:12 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-23 15:11:12 -0800
commitca7aeea825935b417da5ad7752ea818c0fcc98ac (patch)
treefd8c4d5e3eb7d3ce6d202b6df21dffab2279c50a /test/core/slice
parentb1bb50ecc133a6887009175e0c0265962d03cd96 (diff)
Fix test
Diffstat (limited to 'test/core/slice')
-rw-r--r--test/core/slice/slice_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/slice/slice_test.c b/test/core/slice/slice_test.c
index d3d1659341..75bef28dec 100644
--- a/test/core/slice/slice_test.c
+++ b/test/core/slice/slice_test.c
@@ -295,9 +295,9 @@ static void test_static_slice_copy_interning(void) {
for (size_t i = 0; i < GRPC_STATIC_MDSTR_COUNT; i++) {
grpc_slice copy = grpc_slice_dup(grpc_static_slice_table[i]);
- GPR_ASSERT(!grpc_slice_is_equivalent(grpc_static_slice_table[i], copy));
- GPR_ASSERT(grpc_slice_is_equivalent(grpc_static_slice_table[i],
- grpc_slice_intern(copy)));
+ GPR_ASSERT(grpc_static_slice_table[i].refcount != copy.refcount);
+ GPR_ASSERT(grpc_static_slice_table[i].refcount ==
+ grpc_slice_intern(copy).refcount);
grpc_slice_unref(copy);
}