Skip to content

Commit a10ebc2

Browse files
Changed order of clients and server shutdown to prevent freeze on GitLab CI. (#10104)
This follows the proper cleanup pattern: resources should be released in reverse order of their creation, and dependencies (clients) should be cleaned up before the things they depend on (the server).
1 parent f431e84 commit a10ebc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dd-java-agent/instrumentation/redisson/redisson-2.0.0/src/test/groovy/RedissonClientTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ abstract class RedissonClientTest extends VersionedNamingTestBase {
4848
}
4949

5050
def cleanupSpec() {
51-
redisServer.stop()
52-
lowLevelRedisClient.shutdown()
5351
redissonClient.shutdown()
52+
lowLevelRedisClient.shutdown()
53+
redisServer.stop()
5454
}
5555

5656
def setup() {

0 commit comments

Comments
 (0)