Skip to content

Commit 05d583f

Browse files
committed
Small refactor
1 parent d5e8a8e commit 05d583f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/smoketests/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ log = "0.4"
10151015
}
10161016

10171017
/// Publishes the module without passing `--yes`, so interactive prompts are not suppressed.
1018-
pub fn publish_module_named_no_yes(&mut self, name: &str) -> Result<String> {
1018+
pub fn publish_module_named_no_force(&mut self, name: &str) -> Result<String> {
10191019
self.publish_module_internal(Some(name), false, false, false, None)
10201020
}
10211021

crates/smoketests/tests/smoketests/publish_upgrade_prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn upgrade_prompt_on_publish() {
3333
// Switch back to source-built module, which uses current bindings.
3434
test.write_module_code(MODULE_CODE).unwrap();
3535

36-
let deny_err = test.publish_module_named_no_yes(&db_name).unwrap_err().to_string();
36+
let deny_err = test.publish_module_named_no_force(&db_name).unwrap_err().to_string();
3737
assert!(deny_err.contains("major version upgrade from 1.0 to 2.0"));
3838
assert!(deny_err.contains("Please type 'upgrade' to accept this change:"));
3939

0 commit comments

Comments
 (0)