mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 02:45:45 +02:00
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:
parent
f652e09a4a
commit
c612a2be67
2 changed files with 41 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue