Skip to content

Commit 86dd3df

Browse files
committed
test: remove leading dashes from auto-generated test contract names
1 parent 5f1173a commit 86dd3df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stackslib/src/net/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2414,7 +2414,9 @@ pub mod test {
24142414
.len()
24152415
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
24162416
)
2417-
.collect::<String>(),
2417+
.collect::<String>()
2418+
.trim_start_matches('-') // Remove leading '-'
2419+
.to_string(),
24182420
)
24192421
.expect("FATAL: invalid boot-code contract name"),
24202422
code_body: StacksString::from_str(&conf.setup_code)

0 commit comments

Comments
 (0)