Skip to content

Commit

Permalink
Refactored junit toolbox transitive dependencites to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Mar 5, 2024
1 parent 2fcf94e commit da107a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ dependencies {
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation 'net.jodah:concurrentunit:0.4.2'
testImplementation 'org.slf4j:slf4j-simple:1.7.30'
testImplementation 'com.googlecode.junit-toolbox:junit-toolbox:2.4'
testImplementation('com.googlecode.junit-toolbox:junit-toolbox:2.4') {
exclude group: 'org.hamcrest', module: 'hamcrest-library'
exclude group: 'junit', module: 'junit'
exclude group: 'org.mockito', module: 'mockito-core'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ public void channel_invalid_resume_reattach_channels() throws AblyException {

AblyRealtime finalAbly = ably;
Exception conditionError = new Helpers.ConditionalWaiter().
wait(() -> finalAbly.connection.connectionManager.msgSerial == 0, 5000);
wait(() -> finalAbly.connection.connectionManager.msgSerial == 0, 10000);
assertNull(conditionError);

attachedChannelWaiter.waitFor(ChannelState.attaching, ChannelState.attached);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static void tearDownAfterClass() throws Exception {
}

public static void main(String[] args) {
System.setProperty("maxParallelTestThreads", "4");
Result result = JUnitCore.runClasses(RealtimeSuite.class);
for(Failure failure : result.getFailures()) {
System.out.println("Failed :: "+ failure.toString());
Expand Down

0 comments on commit da107a9

Please sign in to comment.