GH-1234 Fixed broken test

Resolves #1234
This commit is contained in:
Oleg Zhurakousky
2018-06-25 23:24:09 -04:00
parent 36caf637b7
commit 55458034b3

View File

@@ -27,7 +27,6 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -396,7 +395,6 @@ public class BindingServiceTests {
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
@Ignore // Inconsistent, needs fixing
public void testLateBindingConsumer() throws Exception {
BindingServiceProperties properties = new BindingServiceProperties();
properties.setBindingRetryInterval(1);
@@ -428,7 +426,7 @@ public class BindingServiceTests {
Binding.class);
int n = 0;
while (n++ < 300 && delegate == null) {
Thread.sleep(100);
Thread.sleep(200);
}
assertThat(delegate).isSameAs(mockBinding);
service.unbindConsumers(inputChannelName);