Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

CI rust test fixes #2511

Merged
merged 1 commit into from
Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
Expand Down