Skip to content

Commit 1c051ee

Browse files
committed
Update tests to include the note
Signed-off-by: Rustin170506 <29879298+Rustin170506@users.noreply.github.com>
1 parent d9d4b42 commit 1c051ee

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/testsuite/search.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ 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+
.with_stderr_data(str![[r#"
119+
[NOTE] to learn more a package, run `cargo info <name>`
120+
121+
"#]])
119122
.run();
120123
}
121124

@@ -128,6 +131,7 @@ fn replace_default() {
128131
.with_stdout_data(SEARCH_RESULTS)
129132
.with_stderr_data(str![[r#"
130133
[UPDATING] crates.io index
134+
[NOTE] to learn more a package, run `cargo info <name>`
131135
132136
"#]])
133137
.run();
@@ -140,6 +144,11 @@ fn simple() {
140144
cargo_process("search postgres --index")
141145
.arg(registry.index_url().as_str())
142146
.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+
"#]])
143152
.run();
144153
}
145154

@@ -150,6 +159,11 @@ fn multiple_query_params() {
150159
cargo_process("search postgres sql --index")
151160
.arg(registry.index_url().as_str())
152161
.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+
"#]])
153167
.run();
154168
}
155169

0 commit comments

Comments
 (0)