Skip to content

Commit

Permalink
Fix intermittent failure of the role change client reset tests (#7919)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wilkerson-Barker authored Jul 24, 2024
1 parent 793b8b5 commit 337a9c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/object-store/sync/flx_role_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,10 @@ TEST_CASE("flx: role changes during client resets complete successfully",
const SyncClientHookData& data) {
bool is_fresh_path;
auto session = weak_session.lock();
REQUIRE(session); // Should always be valid
if (!session) {
// Session is being closed while this function was called
return SyncClientHookAction::NoAction;
}
is_fresh_path = _impl::client_reset::is_fresh_path(session->path());

client_reset_state.transition_with(
Expand Down

0 comments on commit 337a9c0

Please sign in to comment.