From 2e9c47bbddac475ab71453adc838edca9b521723 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 20 Sep 2019 13:06:05 -0700 Subject: [PATCH] Fix integration tests waiting for binaries to finish. Integration tests were waiting for binaries to finish building due to a minor logic error. --- src/cargo/core/compiler/job_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/job_queue.rs b/src/cargo/core/compiler/job_queue.rs index 70d9034075b..004d769d248 100644 --- a/src/cargo/core/compiler/job_queue.rs +++ b/src/cargo/core/compiler/job_queue.rs @@ -164,7 +164,7 @@ impl<'a, 'cfg> JobQueue<'a, 'cfg> { .filter(|unit| { // Binaries aren't actually needed to *compile* tests, just to run // them, so we don't include this dependency edge in the job graph. - !unit.target.is_test() || !unit.target.is_bin() + !unit.target.is_test() && !unit.target.is_bin() }) .map(|dep| { // Handle the case here where our `unit -> dep` dependency may