Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 14, 2024
1 parent e89c85b commit 2c2a050
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 1.3.1
Version: 1.3.1.9000
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library implementing 'Scalability Protocols', a reliable,
high-performance standard for common communications patterns including
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# nanonext 1.3.1.9000 (development)

# nanonext 1.3.1

#### Updates
Expand Down
7 changes: 4 additions & 3 deletions tests/tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ is_nano(s) && {
test_type("integer", send(s, c("message1", "test"), block = 500L))
test_notnull(recv(s, block = FALSE))
test_type("integer", send(s, "message2", block = FALSE))
test_notnull(recv(s, mode = 9L, block = 100))
test_notnull(suppressWarnings(recv(s, mode = 9L, block = 100)))
test_type("integer", send(s, 2L, block = 500))
test_class("recvAio", sr <- recv_aio(s, mode = "i", timeout = 500L, n = 8192L))
test_notnull(suppressWarnings(call_aio(sr)[["data"]]))
Expand Down Expand Up @@ -539,7 +539,8 @@ test_zero(send(s, TRUE, block = 500L))
test_true(recv(disp, block = 500L))
test_zero(send(disp, NULL, block = 500L))
test_null(recv(s, block = 500L))
test_zero(close(s))
test_zero(reap(s))
Sys.sleep(0.1)
test_class("nanoSocket", s <- socket(protocol = "rep"))
test_zero(pipe_notify(s, cv, add = TRUE))
test_zero(dial(s, url = "inproc://disp/1"))
Expand All @@ -550,7 +551,7 @@ test_true(.mark())
test_zero(send(s, NULL, block = 500L))
test_true(!.mark(FALSE))
test_null(recv(disp, block = 500L))
test_zero(close(s))
test_zero(reap(s))
rm(disp)

test_equal(nanonext:::.DollarNames.ncurlAio(NULL, "sta"), "status")
Expand Down

0 comments on commit 2c2a050

Please sign in to comment.