Skip to content

Commit 62362bd

Browse files
committed
Update Armeria version
1 parent 26d0dc9 commit 62362bd

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ repositories {
1111

1212
dependencyManagement {
1313
imports {
14-
mavenBom 'com.linecorp.armeria:armeria-bom:0.88.0'
14+
mavenBom 'com.linecorp.armeria:armeria-bom:0.95.0'
1515
}
1616
}
1717

1818
dependencies {
1919
compile 'com.linecorp.armeria:armeria'
2020

2121
testCompile 'com.linecorp.armeria:armeria-testing-junit'
22-
testCompile 'org.assertj:assertj-core:3.12.2'
23-
testCompile 'org.awaitility:awaitility:4.0.0-rc1'
22+
testCompile 'org.assertj:assertj-core:3.13.2'
23+
testCompile 'org.awaitility:awaitility:4.0.1'
2424
}
2525

2626
tasks.withType(JavaCompile) {

src/test/java/FutureTest.java

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
import java.util.concurrent.CompletableFuture;
2-
31
import org.junit.jupiter.api.Test;
42

53
class FutureTest {
64

75
@Test
86
void futureCallback() {
9-
System.err.println("Thread: " + Thread.currentThread().getName());
107

11-
final CompletableFuture<Void> future = new CompletableFuture<>();
12-
final Thread thread = new Thread(() -> future.complete(null));
13-
thread.setName("t1");
14-
thread.start();
8+
}
9+
10+
@Test
11+
void nettyFutureCallback() {
1512

16-
future.handle((unused, cause) -> {
17-
System.err.println("In handle. Thread: " + Thread.currentThread().getName());
18-
return null;
19-
});
2013
}
2114
}

0 commit comments

Comments
 (0)