@@ -115,7 +115,11 @@ fn not_update() {
115
115
cargo_process ( "search postgres" )
116
116
. replace_crates_io ( registry. index_url ( ) )
117
117
. with_stdout_data ( SEARCH_RESULTS )
118
- . with_stderr_data ( "" ) // without "Updating ... index"
118
+ // without "Updating ... index"
119
+ . with_stderr_data ( str![ [ r#"
120
+ [NOTE] to learn more a package, run `cargo info <name>`
121
+
122
+ "# ] ] )
119
123
. run ( ) ;
120
124
}
121
125
@@ -128,6 +132,7 @@ fn replace_default() {
128
132
. with_stdout_data ( SEARCH_RESULTS )
129
133
. with_stderr_data ( str![ [ r#"
130
134
[UPDATING] crates.io index
135
+ [NOTE] to learn more a package, run `cargo info <name>`
131
136
132
137
"# ] ] )
133
138
. run ( ) ;
@@ -140,6 +145,11 @@ fn simple() {
140
145
cargo_process ( "search postgres --index" )
141
146
. arg ( registry. index_url ( ) . as_str ( ) )
142
147
. with_stdout_data ( SEARCH_RESULTS )
148
+ . with_stderr_data ( str![ [ r#"
149
+ [UPDATING] `[ROOT]/registry` index
150
+ [NOTE] to learn more a package, run `cargo info <name>`
151
+
152
+ "# ] ] )
143
153
. run ( ) ;
144
154
}
145
155
@@ -150,6 +160,11 @@ fn multiple_query_params() {
150
160
cargo_process ( "search postgres sql --index" )
151
161
. arg ( registry. index_url ( ) . as_str ( ) )
152
162
. with_stdout_data ( SEARCH_RESULTS )
163
+ . with_stderr_data ( str![ [ r#"
164
+ [UPDATING] `[ROOT]/registry` index
165
+ [NOTE] to learn more a package, run `cargo info <name>`
166
+
167
+ "# ] ] )
153
168
. run ( ) ;
154
169
}
155
170
0 commit comments