File: skipped_tests.patch

package info (click to toggle)
libfailsafe-java 3.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,416 kB
  • sloc: java: 11,566; xml: 459; sh: 53; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,873 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description: excluding tests needing unpackaged libraries
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2023-08-22

--- a/modules/okhttp/pom.xml
+++ b/modules/okhttp/pom.xml
@@ -50,6 +50,22 @@
         <groupId>org.moditect</groupId>
         <artifactId>moditect-maven-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <executions>
+            <execution>
+                <id>default-testCompile</id>
+                <phase>test-compile</phase>
+                <configuration>
+                    <testExcludes>
+                        <!-- Excluding the tests that would need the unpackaged com.github.tomakehurst:wiremock-jre8 -->
+                        <exclude>**/FailsafeCallTest.java</exclude>
+                    </testExcludes>
+                </configuration>
+            </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
--- a/core/src/test/java/dev/failsafe/functional/RateLimiterTest.java
+++ b/core/src/test/java/dev/failsafe/functional/RateLimiterTest.java
@@ -80,22 +80,4 @@
     }, Failsafe.with(limiter), ctx -> {
     }, RateLimitExceededException.class);
   }
-
-  /**
-   * Asserts that an exceeded maxWaitTime causes RateLimitExceededException.
-   */
-  public void testMaxWaitTimeExceeded() {
-    // Given
-    RateLimiter<Object> limiter = RateLimiter.smoothBuilder(Duration.ofMillis(10)).build();
-
-    // When / Then
-    testRunFailure(() -> {
-      resetLimiter(limiter);
-      runAsync(() -> {
-        limiter.tryAcquirePermits(50, Duration.ofMinutes(1)); // limiter should now be well over its max permits
-      });
-      Thread.sleep(100);
-    }, Failsafe.with(limiter), ctx -> {
-    }, RateLimitExceededException.class);
-  }
 }