unb0rk akka-actor-nightly build
This means tightening types from Duration to FiniteDuration in several places; a good thing, since we replace runtime complaints by compile time errors.
This commit is contained in:
parent
4afd41f9c3
commit
251a62293a
34 changed files with 183 additions and 152 deletions
|
|
@ -98,7 +98,7 @@ public class TestKitDocTest {
|
|||
//#test-within
|
||||
new JavaTestKit(system) {{
|
||||
getRef().tell(42);
|
||||
new Within(Duration.Zero(), Duration.parse("1 second")) {
|
||||
new Within(Duration.Zero(), Duration.create(1, "second")) {
|
||||
// do not put code outside this method, will run afterwards
|
||||
public void run() {
|
||||
assertEquals((Integer) 42, expectMsgClass(Integer.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue