This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 605ea41  Use better name for private functions param
605ea41 is described below

commit 605ea417ea9673dbb69059dbfafe4d941eab0cd4
Author: Felix Schumacher <[email protected]>
AuthorDate: Sun Sep 19 12:24:37 2021 +0200

    Use better name for private functions param
---
 .../test/java/org/apache/jmeter/functions/TestTimeShiftFunction.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/functions/src/test/java/org/apache/jmeter/functions/TestTimeShiftFunction.java
 
b/src/functions/src/test/java/org/apache/jmeter/functions/TestTimeShiftFunction.java
index 1587d6b..f3d53da 100644
--- 
a/src/functions/src/test/java/org/apache/jmeter/functions/TestTimeShiftFunction.java
+++ 
b/src/functions/src/test/java/org/apache/jmeter/functions/TestTimeShiftFunction.java
@@ -125,11 +125,11 @@ class TestTimeShiftFunction extends JMeterTestCase {
         assertThat(futureDateFromFunction, within(1, ChronoUnit.SECONDS, 
futureDate));
     }
 
-    private BooleanSupplier dstChangeAhead(String string) {
+    private BooleanSupplier dstChangeAhead(String duration) {
         return () -> {
             ZoneId defaultZoneId = ZoneId.systemDefault();
             Instant now = 
LocalDateTime.now().atZone(defaultZoneId).toInstant();
-            Instant then = 
LocalDateTime.now().plus(Duration.parse(string)).atZone(defaultZoneId).toInstant();
+            Instant then = 
LocalDateTime.now().plus(Duration.parse(duration)).atZone(defaultZoneId).toInstant();
             ZoneRules rules = defaultZoneId.getRules();
             Duration nowDST = rules.getDaylightSavings(now);
             Duration thenDST = rules.getDaylightSavings(then);

Reply via email to