Skip to content

Commit 80ac0fa

Browse files
committed
core: test regolith time in genesis setup from superchain-registry
1 parent b21ac42 commit 80ac0fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/superchain_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func TestRegistryChainConfigOverride(t *testing.T) {
2828
if genesis.Config.RegolithTime == nil {
2929
t.Fatal("expected non-nil regolith time")
3030
}
31+
expectedRegolithTime := *genesis.Config.RegolithTime
3132
genesis.Config.RegolithTime = nil
3233

3334
// initialize the DB
@@ -47,5 +48,7 @@ func TestRegistryChainConfigOverride(t *testing.T) {
4748
// check if we have a corrected chain config
4849
if chainConfig.RegolithTime == nil {
4950
t.Fatal("expected regolith time to be corrected, but time is still nil")
51+
} else if *chainConfig.RegolithTime != expectedRegolithTime {
52+
t.Fatalf("expected regolith time to be %d, but got %d", expectedRegolithTime, *chainConfig.RegolithTime)
5053
}
5154
}

0 commit comments

Comments
 (0)