@@ -115,7 +115,11 @@ fn not_update() {
115115 cargo_process ( "search postgres" )
116116 . replace_crates_io ( registry. index_url ( ) )
117117 . 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 about a package, run `cargo info <name>`
121+
122+ "# ] ] )
119123 . run ( ) ;
120124}
121125
@@ -128,6 +132,7 @@ fn replace_default() {
128132 . with_stdout_data ( SEARCH_RESULTS )
129133 . with_stderr_data ( str![ [ r#"
130134[UPDATING] crates.io index
135+ [NOTE] to learn more about a package, run `cargo info <name>`
131136
132137"# ] ] )
133138 . run ( ) ;
@@ -140,6 +145,11 @@ fn simple() {
140145 cargo_process ( "search postgres --index" )
141146 . arg ( registry. index_url ( ) . as_str ( ) )
142147 . with_stdout_data ( SEARCH_RESULTS )
148+ . with_stderr_data ( str![ [ r#"
149+ [UPDATING] `[ROOT]/registry` index
150+ [NOTE] to learn more about a package, run `cargo info <name>`
151+
152+ "# ] ] )
143153 . run ( ) ;
144154}
145155
@@ -150,6 +160,11 @@ fn multiple_query_params() {
150160 cargo_process ( "search postgres sql --index" )
151161 . arg ( registry. index_url ( ) . as_str ( ) )
152162 . with_stdout_data ( SEARCH_RESULTS )
163+ . with_stderr_data ( str![ [ r#"
164+ [UPDATING] `[ROOT]/registry` index
165+ [NOTE] to learn more about a package, run `cargo info <name>`
166+
167+ "# ] ] )
153168 . run ( ) ;
154169}
155170
0 commit comments