From b2aa4da9e7012f3eeed41c053fb1781494e05681 Mon Sep 17 00:00:00 2001 From: v-jizhang <66389669+buck-bot@users.noreply.github.com> Date: Fri, 31 Jul 2020 10:15:57 -0700 Subject: [PATCH] CI rust test fixes --- .../buck/features/rust/RustBinaryIntegrationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/com/facebook/buck/features/rust/RustBinaryIntegrationTest.java b/test/com/facebook/buck/features/rust/RustBinaryIntegrationTest.java index bd51ebe8b35..73ec847acb7 100644 --- a/test/com/facebook/buck/features/rust/RustBinaryIntegrationTest.java +++ b/test/com/facebook/buck/features/rust/RustBinaryIntegrationTest.java @@ -17,6 +17,7 @@ package com.facebook.buck.features.rust; import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.either; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; @@ -199,7 +200,8 @@ public void simpleBinaryWarnings() throws IOException { assertThat( workspace.runBuckBuild("//:xyzzy").assertSuccess().getStderr(), Matchers.allOf( - containsString("warning: constant item is never used: `foo`"), + either(containsString("warning: constant item is never used: `foo`")) + .or(containsString("warning: constant is never used: `foo`")), containsString("warning: constant `foo` should have an upper case name"))); BuckBuildLog buildLog = workspace.getBuildLog();