Skip to content

Commit 23076f8

Browse files
committed
GH-1497: Fix Test
1 parent c929cd5 commit 23076f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactoryTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2020 the original author or authors.
2+
* Copyright 2010-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,6 +39,7 @@
3939
import org.junit.jupiter.api.Test;
4040
import org.mockito.ArgumentCaptor;
4141

42+
import org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.AddressShuffleMode;
4243
import org.springframework.amqp.utils.test.TestUtils;
4344
import org.springframework.beans.DirectFieldAccessor;
4445
import org.springframework.scheduling.concurrent.CustomizableThreadFactory;
@@ -104,6 +105,7 @@ public void onClose(Connection connection) {
104105
verify(mockConnectionFactory, times(1)).newConnection(any(ExecutorService.class), anyString());
105106

106107
connectionFactory.setAddresses("foo:5672,bar:5672");
108+
connectionFactory.setAddressShuffleMode(AddressShuffleMode.NONE);
107109
con = connectionFactory.createConnection();
108110
assertThat(called.get()).isEqualTo(1);
109111
captor = ArgumentCaptor.forClass(String.class);

0 commit comments

Comments
 (0)