_increase_timeout_for_slow_arches_like_mips
authorRust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Wed, 6 Feb 2019 04:52:47 +0000 (04:52 +0000)
committerXimin Luo <infinity0@debian.org>
Wed, 6 Feb 2019 04:52:47 +0000 (04:52 +0000)
Gbp-Pq: Name 1003_increase_timeout_for_slow_arches_like_mips.patch

src/cargo/core/resolver/types.rs
tests/testsuite/concurrent.rs
tests/testsuite/support/resolver.rs

index b9923bf777511fda32cfa58c56c9dc78f51997bb..4766be3f4aea82b9bd2e3cbef0835162ba78a0b7 100644 (file)
@@ -64,7 +64,7 @@ impl ResolverProgress {
         // If any of them are removed then it takes more than I am willing to measure.
         // So lets fail the test fast if we have ben running for two long.
         if cfg!(debug_assertions) && (self.ticks % 1000 == 0) {
-            assert!(self.start.elapsed() - self.deps_time < Duration::from_secs(90));
+            assert!(self.start.elapsed() - self.deps_time < Duration::from_secs(360));
         }
         Ok(())
     }
index a999467f9d6fee739e7e462b06df65e6f7667a4c..34b84cf255ece284cc784981f99abcd441cd93c4 100644 (file)
@@ -511,7 +511,7 @@ fn no_deadlock_with_git_dependencies() {
     }
 
     for _ in 0..n_concurrent_builds {
-        let result = rx.recv_timeout(Duration::from_secs(30)).expect("Deadlock!");
+        let result = rx.recv_timeout(Duration::from_secs(120)).expect("Deadlock!");
         execs().run_output(&result);
     }
 }
index 9dca8fcfd8e498f98a71eb2560bb79a8729838ef..866949bf131af9c847c60dd470f6ed402a053dc0 100644 (file)
@@ -117,7 +117,7 @@ pub fn resolve_with_config_raw(
 
     // The largest test in our suite takes less then 30 sec.
     // So lets fail the test if we have ben running for two long.
-    assert!(start.elapsed() < Duration::from_secs(60));
+    assert!(start.elapsed() < Duration::from_secs(240));
     resolve
 }