File: flaky_test.patch

package info (click to toggle)
ojalgo 56.0.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472,664 kB
  • sloc: java: 122,652; xml: 200; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: deactivating a flaky test, which can indeed fail sometimes
 according to the comment ahead
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2024-02-11

--- a/src/test/java/org/ojalgo/optimisation/integer/IntegerUserFiles.java
+++ b/src/test/java/org/ojalgo/optimisation/integer/IntegerUserFiles.java
@@ -21,6 +21,7 @@
  */
 package org.ojalgo.optimisation.integer;
 
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 import org.ojalgo.optimisation.ExpressionsBasedModel;
@@ -82,6 +83,7 @@
      * <li>v56.0.0-SNAPSHOT (Improved LP) ≈ [gap 6 => 2.0s, gap 5 => 1.2s, gap 4 => 0.4s, gap 3 => 0.4s]
      * </ul>
      */
+    @Disabled("Can fail from time to time, as noticed above")
     @Test
     public void testEnergyApp() {