mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Fix graffiti calculator test mock commit fallback (#9087)
Co-Authored-By: Weixie Cui <cuiweixie@gmail.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user