1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Fix provider loading in test for release builds

This commit is contained in:
Denis Protivensky
2021-12-15 16:43:31 +03:00
parent 9bd26d49c5
commit f7c8c22ad3

View File

@ -257,7 +257,9 @@ namespace wsrep
provider_ = new wsrep::mock_provider(*this);
return std::unique_ptr<wsrep::provider>(provider_);
});
assert(load_provider("mock", "") == 0);
const int ret = load_provider("mock", "");
assert(ret == 0);
assert(provider_ != nullptr);
}