mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: Remove tiering test skip (#3011)
chore: reduce test limits Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
186ff31e29
commit
8697b20a9e
1 changed files with 6 additions and 7 deletions
|
@ -51,10 +51,11 @@ class TieredStorageTest : public BaseFamilyTest {
|
|||
|
||||
// Perform simple series of SET, GETSET and GET
|
||||
TEST_F(TieredStorageTest, SimpleGetSet) {
|
||||
const int kMax = 5000;
|
||||
const int kMin = 256;
|
||||
const int kMax = tiering::kPageSize + 10;
|
||||
|
||||
// Perform SETs
|
||||
for (size_t i = 64; i < kMax; i++) {
|
||||
for (size_t i = kMin; i < kMax; i++) {
|
||||
Run({"SET", absl::StrCat("k", i), string(i, 'A')});
|
||||
}
|
||||
|
||||
|
@ -62,19 +63,17 @@ TEST_F(TieredStorageTest, SimpleGetSet) {
|
|||
size_t stashes = 0;
|
||||
ExpectConditionWithinTimeout([this, &stashes] {
|
||||
stashes = GetMetrics().tiered_stats.total_stashes;
|
||||
return stashes >= kMax - 64 - 1;
|
||||
return stashes >= kMax - 256 - 1;
|
||||
});
|
||||
|
||||
GTEST_SKIP() << "TODO: Deadlocks";
|
||||
|
||||
// Perform GETSETs
|
||||
for (size_t i = 64; i < kMax; i++) {
|
||||
for (size_t i = kMin; i < kMax; i++) {
|
||||
auto resp = Run({"GETSET", absl::StrCat("k", i), string(i, 'B')});
|
||||
ASSERT_EQ(resp, string(i, 'A')) << i;
|
||||
}
|
||||
|
||||
// Perform GETs
|
||||
for (size_t i = 64; i < kMax; i++) {
|
||||
for (size_t i = kMin; i < kMax; i++) {
|
||||
auto resp = Run({"GET", absl::StrCat("k", i)});
|
||||
ASSERT_EQ(resp, string(i, 'B')) << i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue