session CHANGE libyang api changed
diff --git a/tests/test_io.c b/tests/test_io.c
index a7ba0d3..67fce58 100644
--- a/tests/test_io.c
+++ b/tests/test_io.c
@@ -59,7 +59,7 @@
         return -1;
     }
 
-    lys_read(session->ctx, fd, LYS_IN_YIN);
+    lys_parse_fd(session->ctx, fd, LYS_IN_YIN);
     close(fd);
 
     *state = session;
@@ -174,7 +174,7 @@
         return -1;
     }
 
-    lys_read(w->session->ctx, fd, LYS_IN_YIN);
+    lys_parse_fd(w->session->ctx, fd, LYS_IN_YIN);
     close(fd);
 
     w->session->status = NC_STATUS_RUNNING;