Skip to content

Commit 9b0b793

Browse files
committed
use isnull to check
1 parent c94e55e commit 9b0b793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_wait.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ recv_check = zeros(Int, nsends)
2020

2121
for i = 1:nsends
2222
idx = MPI.Waitany(send_reqs)
23-
@test send_reqs[idx] == MPI.REQUEST_NULL
23+
@test MPI.isnull(send_reqs[idx])
2424
send_check[idx] += 1
2525
end
2626
@test send_check == ones(Int, nsends)
2727

2828
for i = 1:nsends
2929
idx = MPI.Waitany(recv_reqs)
30-
@test recv_reqs[idx] == MPI.REQUEST_NULL
30+
@test MPI.isnull(recv_reqs[idx])
3131
recv_check[idx] += 1
3232
end
3333
@test recv_check == ones(Int, nsends)

0 commit comments

Comments
 (0)