mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +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,
|
DEFAULT_CLIENT_VERSION.code,
|
||||||
mock_commit
|
mock_commit
|
||||||
.strip_prefix("0x")
|
.strip_prefix("0x")
|
||||||
.unwrap_or("&mock_commit")
|
.unwrap_or(&mock_commit)
|
||||||
.get(0..4)
|
.get(0..4)
|
||||||
.expect("should get first 2 bytes in hex"),
|
.expect("should get first 2 bytes in hex"),
|
||||||
"LH",
|
"LH",
|
||||||
@@ -459,7 +459,7 @@ mod tests {
|
|||||||
DEFAULT_CLIENT_VERSION.code,
|
DEFAULT_CLIENT_VERSION.code,
|
||||||
mock_commit
|
mock_commit
|
||||||
.strip_prefix("0x")
|
.strip_prefix("0x")
|
||||||
.unwrap_or("&mock_commit")
|
.unwrap_or(&mock_commit)
|
||||||
.get(0..2)
|
.get(0..2)
|
||||||
.expect("should get first 2 bytes in hex"),
|
.expect("should get first 2 bytes in hex"),
|
||||||
"LH",
|
"LH",
|
||||||
|
|||||||
Reference in New Issue
Block a user