mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: asan errors on unit tests (#2564)
* fix: asan errors on unit tests
This commit is contained in:
parent
815976c9dc
commit
795d00021d
5 changed files with 30 additions and 14 deletions
|
@ -202,6 +202,13 @@ TEST_F(RdbTest, SaveLoadSticky) {
|
|||
EXPECT_THAT(Run({"stick", "c"}), IntArg(1));
|
||||
}
|
||||
|
||||
TEST_F(RdbTest, ReloadSetSmallStringBug) {
|
||||
auto str = absl::StrCat(std::string(32, 'X'));
|
||||
Run({"set", "small_key", str});
|
||||
auto resp = Run({"debug", "reload"});
|
||||
ASSERT_EQ(resp, "OK");
|
||||
}
|
||||
|
||||
TEST_F(RdbTest, Reload) {
|
||||
absl::FlagSaver fs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue