Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: patch lua unit test #315

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/unit/parsec/agent/runners/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target_sources(run_unit_tests PRIVATE account_test.cpp
agent_test.cpp
runner_test.cpp)
runner_test.cpp
read_lock_test.cpp)
4 changes: 2 additions & 2 deletions tests/unit/parsec/agent/runners/lua/read_lock_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ TEST(lua_runner_test, lua_write_lock_test) {
/* res_cb */) -> bool {
// Cannot use ASSERT here because it does not satisfy return
// requirements so we use expect
if(std::string("W").compare(key.c_str()) == 0) {
if(std::string("W") == key.c_str()) {
EXPECT_TRUE(locktype == cbdc::parsec::broker::lock_type::write);
write_lock_promise.set_value();
} else {
Expand Down Expand Up @@ -107,7 +107,7 @@ TEST(lua_runner_test, lua_read_lock_test) {
/* res_cb */) -> bool {
// Cannot use ASSERT here because it does not satisfy return
// requirements so we use expect
if(std::string("R").compare(key.c_str()) == 0) {
if(std::string("R") == key.c_str()) {
EXPECT_TRUE(locktype == cbdc::parsec::broker::lock_type::read);
read_lock_promise.set_value();
} else {
Expand Down
93 changes: 0 additions & 93 deletions tests/unit/parsec/agent/runners/lua/write_lock_test.cpp

This file was deleted.

Loading