Skip to content

Commit 42953ce

Browse files
committed
Suddenly, test durations do not align anymore. What is going on?
1 parent 4b8fabb commit 42953ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/org/springframework/data/repository/query/DefaultParameters.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public DefaultParameters(Method method, TypeInformation<?> aggregateType) {
5858
* Creates a new {@link DefaultParameters} instance from the given {@link Method} and aggregate
5959
* {@link TypeInformation}.
6060
*
61-
* @param method must not be {@literal null}.
61+
* @param method must not be {@literal null}.
6262
* @param parameterFactory must not be {@literal null}.
63-
* @param aggregateType must not be {@literal null}.
63+
* @param aggregateType must not be {@literal null}.
6464
* @since 3.2.1
6565
*/
6666
public DefaultParameters(Method method, IntFunction<MethodParameter> parameterFactory,

src/test/java/org/springframework/data/repository/core/support/RepositoryMethodInvokerUnitTests.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ void capturesImperativeDurationCorrectly() throws Exception {
114114

115115
repositoryMethodInvoker("findAll").invoke();
116116

117-
assertThat(multicaster.first().getDuration(TimeUnit.MILLISECONDS)).isCloseTo(250, Percentage.withPercentage(10));
117+
assertThat(multicaster.first()
118+
.getDuration(TimeUnit.MILLISECONDS)).isCloseTo(500, Percentage.withPercentage(50));
118119
}
119120

120121
@Test // DATACMNS-1764
@@ -124,7 +125,8 @@ void capturesReactiveDurationCorrectly() throws Exception {
124125

125126
repositoryMethodInvokerForReactive("findAll").<Flux<TestDummy>> invoke().subscribe();
126127

127-
assertThat(multicaster.first().getDuration(TimeUnit.MILLISECONDS)).isCloseTo(250, Percentage.withPercentage(10));
128+
assertThat(multicaster.first()
129+
.getDuration(TimeUnit.MILLISECONDS)).isCloseTo(500, Percentage.withPercentage(50));
128130
}
129131

130132
@Test // DATACMNS-1764

0 commit comments

Comments
 (0)