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