Skip to content

Commit

Permalink
fix unstable test case
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Jan 13, 2022
1 parent 333ecff commit be60fda
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/storage/test/StorageHttpPropertyHandlerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,28 +77,12 @@ TEST(StorageHttpPropertyHandlerTest, ValidRequest) {
{
std::string expect =
R"([
{
"Engine 0": "96",
"Engine 1": "96"
}
])";
EXPECT_EQ(expect, request("/rocksdb_property?space=1&property=rocksdb.block-cache-usage"));
}
{
std::string expect =
R"([
{
"Engine 0": "96",
"Engine 1": "96"
},
{
"Engine 0": "0",
"Engine 1": "0"
}
])";
EXPECT_EQ(expect,
request("/rocksdb_property?space=1&property="
"rocksdb.block-cache-usage,rocksdb.is-write-stopped"));
EXPECT_EQ(expect, request("/rocksdb_property?space=1&property=rocksdb.is-write-stopped"));
}
}

Expand Down

0 comments on commit be60fda

Please sign in to comment.