Skip to content

Commit e14809a

Browse files
Merge pull request #348 from google:fix_flake
PiperOrigin-RevId: 598544256
2 parents 91a15f5 + d0f6cea commit e14809a

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed
File renamed without changes.

googletest/src/matchers/display_matcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ mod tests {
6868
use super::displays_as;
6969
use crate::prelude::*;
7070
use indoc::indoc;
71+
use serial_test::parallel;
7172
use std::fmt::{Debug, Display, Error, Formatter};
7273

7374
#[test]
@@ -102,6 +103,7 @@ mod tests {
102103
}
103104

104105
#[test]
106+
#[parallel]
105107
fn display_displays_error_message_with_explanation_from_inner_matcher() -> Result<()> {
106108
let result = verify_that!("123\n234", displays_as(eq("123\n345")));
107109

googletest/src/matchers/eq_deref_of_matcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ mod tests {
103103
use super::eq_deref_of;
104104
use crate::prelude::*;
105105
use indoc::indoc;
106+
use serial_test::parallel;
106107

107108
#[derive(Debug, PartialEq)]
108109
struct NonCloneNonCopyStruct(i32);
@@ -123,6 +124,7 @@ mod tests {
123124
}
124125

125126
#[test]
127+
#[parallel]
126128
fn shows_structured_diff() -> Result<()> {
127129
#[derive(Debug, PartialEq)]
128130
struct Strukt {

googletest/src/matchers/eq_matcher.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ mod tests {
138138
use super::eq;
139139
use crate::prelude::*;
140140
use indoc::indoc;
141+
use serial_test::parallel;
141142

142143
#[test]
143144
fn eq_matches_string_reference_with_string_reference() -> Result<()> {
@@ -162,6 +163,7 @@ mod tests {
162163
}
163164

164165
#[test]
166+
#[parallel]
165167
fn eq_struct_debug_diff() -> Result<()> {
166168
#[derive(Debug, PartialEq)]
167169
struct Strukt {
@@ -191,6 +193,7 @@ mod tests {
191193
}
192194

193195
#[test]
196+
#[parallel]
194197
fn eq_vec_debug_diff() -> Result<()> {
195198
let result = verify_that!(vec![1, 2, 3], eq(vec![1, 3, 4]));
196199
verify_that!(
@@ -213,6 +216,7 @@ mod tests {
213216
}
214217

215218
#[test]
219+
#[parallel]
216220
fn eq_vec_debug_diff_length_mismatch() -> Result<()> {
217221
let result = verify_that!(vec![1, 2, 3, 4, 5], eq(vec![1, 3, 5]));
218222
verify_that!(
@@ -236,6 +240,7 @@ mod tests {
236240
}
237241

238242
#[test]
243+
#[parallel]
239244
fn eq_debug_diff_common_lines_omitted() -> Result<()> {
240245
let result = verify_that!((1..50).collect::<Vec<_>>(), eq((3..52).collect::<Vec<_>>()));
241246
verify_that!(
@@ -260,6 +265,7 @@ mod tests {
260265
}
261266

262267
#[test]
268+
#[parallel]
263269
fn eq_debug_diff_5_common_lines_not_omitted() -> Result<()> {
264270
let result = verify_that!((1..8).collect::<Vec<_>>(), eq((3..10).collect::<Vec<_>>()));
265271
verify_that!(
@@ -284,6 +290,7 @@ mod tests {
284290
}
285291

286292
#[test]
293+
#[parallel]
287294
fn eq_debug_diff_start_common_lines_omitted() -> Result<()> {
288295
let result = verify_that!((1..50).collect::<Vec<_>>(), eq((1..52).collect::<Vec<_>>()));
289296
verify_that!(
@@ -305,6 +312,7 @@ mod tests {
305312
}
306313

307314
#[test]
315+
#[parallel]
308316
fn eq_debug_diff_end_common_lines_omitted() -> Result<()> {
309317
let result = verify_that!((1..52).collect::<Vec<_>>(), eq((3..52).collect::<Vec<_>>()));
310318
verify_that!(
@@ -343,6 +351,7 @@ mod tests {
343351
}
344352

345353
#[test]
354+
#[parallel]
346355
fn match_explanation_contains_diff_of_strings_if_more_than_one_line() -> Result<()> {
347356
let result = verify_that!(
348357
indoc!(

googletest/src/matchers/str_matcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ mod tests {
593593
use crate::matcher::{Matcher, MatcherResult};
594594
use crate::prelude::*;
595595
use indoc::indoc;
596+
use serial_test::parallel;
596597

597598
#[test]
598599
fn matches_string_reference_with_equal_string_reference() -> Result<()> {
@@ -986,6 +987,7 @@ mod tests {
986987
}
987988

988989
#[test]
990+
#[parallel]
989991
fn match_explanation_for_starts_with_ignores_trailing_lines_in_actual_string() -> Result<()> {
990992
let result = verify_that!(
991993
indoc!(

0 commit comments

Comments
 (0)