File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
//! Tests for network configuration.
2
2
3
- #![ allow( deprecated) ]
4
-
5
3
use cargo_test_support:: project;
4
+ use cargo_test_support:: str;
6
5
7
6
#[ cargo_test]
8
7
fn net_retry_loads_from_config ( ) {
@@ -33,10 +32,11 @@ fn net_retry_loads_from_config() {
33
32
34
33
p. cargo ( "check -v" )
35
34
. with_status ( 101 )
36
- . with_stderr_contains (
37
- "[WARNING] spurious network error \
38
- (1 tries remaining): [..]",
39
- )
35
+ . with_stderr_data ( str![ [ r#"
36
+ ...
37
+ [WARNING] spurious network error (1 tries remaining): [..]
38
+ ...
39
+ "# ] ] )
40
40
. run ( ) ;
41
41
}
42
42
@@ -67,10 +67,11 @@ fn net_retry_git_outputs_warning() {
67
67
68
68
p. cargo ( "check -v -j 1" )
69
69
. with_status ( 101 )
70
- . with_stderr_contains (
71
- "[WARNING] spurious network error \
72
- (2 tries remaining): [..]",
73
- )
74
- . with_stderr_contains ( "[WARNING] spurious network error (1 tries remaining): [..]" )
70
+ . with_stderr_data ( str![ [ r#"
71
+ ...
72
+ [WARNING] spurious network error (2 tries remaining): [..]
73
+ [WARNING] spurious network error (1 tries remaining): [..]
74
+ ...
75
+ "# ] ] )
75
76
. run ( ) ;
76
77
}
You can’t perform that action at this time.
0 commit comments