Skip to content

Commit f55b698

Browse files
committed
修复几个警告
1 parent 92d545a commit f55b698

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_channel.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function test_channel:test_fd()
186186
end
187187
end
188188
]]
189-
local epfd <close> = epoll.create(16)
189+
local epfd <close> = assert(epoll.create(16))
190190
epfd:event_add(res:fd(), epoll.EPOLLIN)
191191
local function test_ok(...)
192192
req:push(...)
@@ -244,7 +244,7 @@ function test_channel:test_fd_2()
244244
end
245245
]]
246246
local expected = {}
247-
local epfd <close> = epoll.create(16)
247+
local epfd <close> = assert(epoll.create(16))
248248
epfd:event_add(res:fd(), epoll.EPOLLIN)
249249
TestSuit(function (...)
250250
req:push(...)

0 commit comments

Comments
 (0)