ARTEMIS-4247 Fixing BrokerInSyncTest::testExpiryNoReaper

Once the context is set to disable mirror, it should stay that way even if reset is called.
This commit is contained in:
Clebert Suconic 2023-04-26 00:28:10 -04:00
parent 74fa4ca758
commit c2ad54fa91
1 changed files with 6 additions and 1 deletions

View File

@ -167,7 +167,12 @@ public class RoutingContextImpl implements RoutingContext {
this.internalOnly = null;
mirrorOption = MirrorOption.enabled;
// once we set to disabled, we keep it always disabled.
// This is because the routing object used to route commands will disable this
// and it should stay that way no matter what
if (mirrorOption != MirrorOption.disabled) {
mirrorOption = MirrorOption.enabled;
}
return this;
}