ARTEMIS-2797 Fixing updateQueue on filter / fixing ActiveMQServerControlTest
This commit is contained in:
parent
6cc370e169
commit
3f99c4b846
|
@ -701,7 +701,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
|
|||
final SimpleString empty = new SimpleString("");
|
||||
Filter oldFilter = FilterImpl.createFilter(queue.getFilter() == null ? empty : queue.getFilter().getFilterString());
|
||||
Filter newFilter = FilterImpl.createFilter(queueConfiguration.getFilterString() == null ? empty : queueConfiguration.getFilterString());
|
||||
if ((forceUpdate || newFilter != null) && !Objects.equals(oldFilter, newFilter)) {
|
||||
if ((forceUpdate || newFilter != oldFilter) && !Objects.equals(oldFilter, newFilter)) {
|
||||
changed = true;
|
||||
queue.setFilter(newFilter);
|
||||
}
|
||||
|
|
|
@ -514,8 +514,8 @@ public class ActiveMQServerControlTest extends ManagementTestBase {
|
|||
|
||||
producer.send(m);
|
||||
|
||||
assertNotNull(consumer1.receiveImmediate());
|
||||
assertNotNull(consumer2.receiveImmediate());
|
||||
assertNotNull(consumer1.receive(1000));
|
||||
assertNotNull(consumer2.receive(1000));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue