File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
spring-boot-project/spring-boot/src
main/java/org/springframework/boot/task
test/java/org/springframework/boot/task Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2012-2019 the original author or authors.
2+ * Copyright 2012-2020 the original author or authors.
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.
Original file line number Diff line number Diff line change @@ -61,14 +61,10 @@ void awaitTerminationShouldApply() {
6161 }
6262
6363 @ Test
64- void awaitTerminationPeriodShouldApply () {
65- Duration period = Duration .ofMinutes ( 1 );
64+ void awaitTerminationPeriodShouldApplyWithMillisecondPrecision () {
65+ Duration period = Duration .ofMillis ( 50 );
6666 ThreadPoolTaskExecutor executor = this .builder .awaitTerminationPeriod (period ).build ();
6767 assertThat (executor ).hasFieldOrPropertyWithValue ("awaitTerminationMillis" , period .toMillis ());
68-
69- period = Duration .ofMillis (50 );
70- executor = this .builder .awaitTerminationPeriod (period ).build ();
71- assertThat (executor ).hasFieldOrPropertyWithValue ("awaitTerminationMillis" , period .toMillis ());
7268 }
7369
7470 @ Test
You can’t perform that action at this time.
0 commit comments