chore: Introduce basic deadlock detector for tests (#1896)

Also, fix IOUring dependency issue in tests on non-linux platforms.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-09-20 14:13:22 +03:00 committed by GitHub
parent f652e09a4a
commit c612a2be67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 18 deletions

View file

@ -91,6 +91,8 @@ class BaseFamilyTest : public ::testing::Test {
void ResetService();
void ShutdownService();
bool IsLocked(DbIndex db_index, std::string_view key) const;
ConnectionContext::DebugInfo GetDebugInfo(const std::string& id) const;
@ -139,6 +141,8 @@ class BaseFamilyTest : public ::testing::Test {
std::vector<RespVec*> resp_vec_;
bool single_response_ = true;
util::fb2::Fiber watchdog_fiber_;
util::fb2::Done watchdog_done_;
};
std::ostream& operator<<(std::ostream& os, const DbStats& stats);