mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
chore: retire TEST_EnableHeartBeat (#3435)
Now unit tests will run the same Hearbeat fiber like in prod. The whole feature was redundant, with just few explicit settings of maxmemory_limit I succeeeded to make all unit tests pass. In addition, this change allows passing a global handler that is called by heartbeat from a single thread. This is not used yet - preparation for the next PR to break hung up replication connections on a master. Finally, this change has some non-functional clean-ups and warning fixes to improve code quality. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
82298b8122
commit
c9ed3f7b2b
22 changed files with 56 additions and 100 deletions
|
@ -45,6 +45,7 @@ class RdbTest : public BaseFamilyTest {
|
|||
|
||||
void RdbTest::SetUp() {
|
||||
InitWithDbFilename();
|
||||
max_memory_limit = 40000000;
|
||||
}
|
||||
|
||||
inline const uint8_t* to_byte(const void* s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue