File tree Expand file tree Collapse file tree
common/reactive/src/test/java/io/helidon/common/reactive Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2017, 2021 Oracle and/or its affiliates.
2+ * Copyright (c) 2017, 2024 Oracle and/or its affiliates.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import java .io .IOException ;
2020import java .io .PrintWriter ;
2121import java .nio .ByteBuffer ;
22- import java .util .concurrent .TimeUnit ;
2322
2423import org .junit .jupiter .api .Test ;
2524
25+ import static java .time .Duration .ofMillis ;
2626import static org .hamcrest .CoreMatchers .equalTo ;
2727import static org .hamcrest .CoreMatchers .is ;
2828import static org .hamcrest .CoreMatchers .nullValue ;
@@ -56,7 +56,7 @@ void testMulti() {
5656 @ Test
5757 void testMultiTimeout () {
5858 MultiFromOutputStream osMulti = IoMulti .builderOutputStream ()
59- .timeout (200 , TimeUnit . MILLISECONDS )
59+ .timeout (ofMillis ( 200 ) )
6060 .build ();
6161
6262 TestSubscriber <ByteBuffer > testSubscriber = new TestSubscriber <>();
You can’t perform that action at this time.
0 commit comments