mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
mongodb 交互协议调整为 OP_MSG (#1649)
* mongodb 交互协议调整为 OP_MSG * Update Co-authored-by: yy151474 <yy151474@alibaba-inc.com>
This commit is contained in:
@@ -14,7 +14,7 @@ local function _create_client()
|
||||
{
|
||||
host = host, port = port,
|
||||
username = username, password = password,
|
||||
authdb = db_name,
|
||||
authdb = "admin",
|
||||
}
|
||||
)
|
||||
end
|
||||
@@ -209,7 +209,7 @@ local function test_safe_batch_delete()
|
||||
db.testcoll:safe_batch_delete(docs)
|
||||
|
||||
local ret = db.testcoll:find()
|
||||
assert(length == ret:count(), "test safe batch delete failed")
|
||||
assert((length - del_num) == ret:count(), "test safe batch delete failed")
|
||||
end
|
||||
|
||||
skynet.start(function()
|
||||
|
||||
Reference in New Issue
Block a user