Fix graffiti calculator test mock commit fallback (#9087)

Co-Authored-By: Weixie Cui <cuiweixie@gmail.com>
This commit is contained in:
cui
2026-04-09 13:54:14 +08:00
committed by GitHub
parent b95f99f130
commit fb5a0434d7

View File

@@ -446,7 +446,7 @@ mod tests {
DEFAULT_CLIENT_VERSION.code,
mock_commit
.strip_prefix("0x")
.unwrap_or("&mock_commit")
.unwrap_or(&mock_commit)
.get(0..4)
.expect("should get first 2 bytes in hex"),
"LH",
@@ -459,7 +459,7 @@ mod tests {
DEFAULT_CLIENT_VERSION.code,
mock_commit
.strip_prefix("0x")
.unwrap_or("&mock_commit")
.unwrap_or(&mock_commit)
.get(0..2)
.expect("should get first 2 bytes in hex"),
"LH",