INT-3909: Upgrade to Tomcat-8.0.33
JIRA: https://jira.spring.io/browse/INT-3909 Un`@Ignore` the `ClientWebSocketContainerTests` to ensure that `Tomcat-8.0.33` has the fix for the closed WebSocket session race condition. Fix `StompIntegrationTests` test data Clean up queue channels before each test, because of some remained extra messages during the web-socket protocol interactions, like socket close events or similar Fix `RedisStoreInboundChannelAdapterIntegrationTests` race conditions Since Jedis driver is async, we not always receive a reply from the `TX-sync` component immediately. And loop checking the Redis for the `key` after some `Thread.sleep()`
This commit is contained in:
committed by
Gary Russell
parent
993549111c
commit
f48d019970
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -94,6 +94,13 @@ public class RedisStoreInboundChannelAdapterIntegrationTests extends RedisAvaila
|
||||
//poll again, should get nothing since the collection was removed during synchronization
|
||||
message = (Message<Integer>) redisChannel.receive(100);
|
||||
assertNull(message);
|
||||
|
||||
int n = 0;
|
||||
while (n++ < 100 && template.keys("bar").size() == 0) {
|
||||
Thread.sleep(100);
|
||||
}
|
||||
assertTrue("Rename didn't occur", n < 100);
|
||||
|
||||
assertEquals(Long.valueOf(13), template.boundListOps("bar").size());
|
||||
template.delete("bar");
|
||||
|
||||
@@ -161,6 +168,13 @@ public class RedisStoreInboundChannelAdapterIntegrationTests extends RedisAvaila
|
||||
//poll again, should get nothing since the collection was removed during synchronization
|
||||
message = (Message<Integer>) redisChannel.receive(100);
|
||||
assertNull(message);
|
||||
|
||||
int n = 0;
|
||||
while (n++ < 100 && template.keys("bar").size() == 0) {
|
||||
Thread.sleep(100);
|
||||
}
|
||||
assertTrue("Rename didn't occur", n < 100);
|
||||
|
||||
assertEquals(Long.valueOf(13), template.boundListOps("bar").size());
|
||||
template.delete("bar");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user