about summary refs log tree commit diff stats
path: root/test/src
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-27 21:40:29 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-27 21:40:29 -0400
commit3523bbda22a89eb0e64cd08958efa6cafd710c09 (patch)
treed57ae82dab951f40cf30a051ac02ab7a79c3b440 /test/src
parent9f6eff69114a493047ffdf1bb6f0e3c86b2119aa (diff)
downloaduv_link_t-3523bbda22a89eb0e64cd08958efa6cafd710c09.tar.gz
src: simplify uv_link_close
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-uv-link-observer-t.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/src/test-uv-link-observer-t.c b/test/src/test-uv-link-observer-t.c
index 3c48908..0ce7b80 100644
--- a/test/src/test-uv-link-observer-t.c
+++ b/test/src/test-uv-link-observer-t.c
@@ -51,8 +51,9 @@ TEST_IMPL(uv_link_observer_t) {
 
   CHECK_EQ(uv_link_init(&source, &methods), 0, "uv_link_init(source)");
 
-  CHECK_EQ(uv_link_observer_init(&observer, &source), 0,
-           "uv_link_observer_init()");
+  CHECK_EQ(uv_link_observer_init(&observer), 0, "uv_link_observer_init()");
+  CHECK_EQ(uv_link_chain(&source, &observer.link), 0,
+           "uv_link_chain");
 
   observer.read_cb = observer_read_cb;