Skip to content

Commit 3afe525

Browse files
committed
Increased window for the multipart expiration test
1 parent d70cc7b commit 3afe525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_config_contacts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ TEST_CASE("multipart message expiry", "[config][multipart][contacts][expiry]") {
720720
auto c2 = std::make_unique<session::config::Contacts>(session::to_span(seed), std::nullopt);
721721

722722
c2->MULTIPART_MAX_WAIT = 200ms;
723-
c2->MULTIPART_MAX_REMEMBER = 400ms;
723+
c2->MULTIPART_MAX_REMEMBER = 600ms;
724724

725725
auto old_seqno = std::get<seqno_t>(c2->push());
726726
REQUIRE(old_seqno == 0);
@@ -801,7 +801,7 @@ TEST_CASE("multipart message expiry", "[config][multipart][contacts][expiry]") {
801801
dump = c2->dump();
802802
CHECK(dump.size() == full_size); // expect no change
803803

804-
std::this_thread::sleep_for(220ms);
804+
std::this_thread::sleep_for(420ms);
805805
// Now we should hit the remember timer, and should discard the cached completed set data when
806806
// we dump:
807807
dump = c2->dump();

0 commit comments

Comments
 (0)