Skip to content

Commit b1b4a26

Browse files
committed
fix integration test
1 parent 9aeebbe commit b1b4a26

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

client/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CHANGES
22

3+
4.0.1 (Sep 4, 2020)
4+
- Remove jersey. Use custom SSE implementation
5+
36
4.0.0 (Aug 19, 2020)
47
- Deprecated Java 7 support. Java 8 is the minimum supported version for this and future releases.
58
- Added support for the new Split streaming architecture. When enabled (default), the SDK will not poll for updates but instead receive notifications every time there's a change in your environments, allowing to process those much quicker. If disabled or in the event of an issue, the SDK will fallback to the known polling mechanism to provide a seamless experience.

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.split.client</groupId>
77
<artifactId>java-client-parent</artifactId>
8-
<version>4.0.0</version>
8+
<version>4.0.1</version>
99
</parent>
1010
<artifactId>java-client</artifactId>
1111
<packaging>jar</packaging>

client/src/test/java/io/split/client/SplitClientIntegrationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public void testConnectionClosedByRemoteHostIsProperlyHandled() throws IOExcepti
519519
eventQueue.push(SSEMockServer.CONNECTION_CLOSED_BY_REMOTE_HOST);
520520
Thread.sleep(1000);
521521
result = client.getTreatment("admin", "push_test");
522-
Assert.assertEquals("on_whitelist", result);
522+
Assert.assertNotEquals("on_whitelist", result);
523523
}
524524

525525
@Test
@@ -538,10 +538,11 @@ public void testConnectionClosedIsProperlyHandled() throws IOException, TimeoutE
538538

539539
String result = client.getTreatment("admin", "push_test");
540540
Assert.assertEquals("on_whitelist", result);
541+
Thread.sleep(1000);
541542
sseServer.stop();
542543
Thread.sleep(1000);
543544
result = client.getTreatment("admin", "push_test");
544-
Assert.assertEquals("on_whitelist", result);
545+
Assert.assertNotEquals("on_whitelist", result);
545546
}
546547

547548
private SSEMockServer buildSSEMockServer(SSEMockServer.SseEventQueue eventQueue) {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.split.client</groupId>
66
<artifactId>java-client-parent</artifactId>
7-
<version>4.0.0</version>
7+
<version>4.0.1</version>
88
<dependencyManagement>
99
<dependencies>
1010
<dependency>

testing/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.split.client</groupId>
88
<artifactId>java-client-parent</artifactId>
9-
<version>4.0.0</version>
9+
<version>4.0.1</version>
1010
</parent>
1111

1212
<artifactId>java-client-testing</artifactId>

0 commit comments

Comments
 (0)