Skip to content

Commit

Permalink
Fix default config unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 3, 2025
1 parent ae0667e commit 6cea7d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/evm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ func TestVMConfigDefaults(t *testing.T) {
vmConfig.SetDefaults()
vmConfig.RPCTxFeeCap = txFeeCap
vmConfig.EnabledEthAPIs = enabledEthAPIs
vmConfig.UpdateWithDefaults()
require.Equal(t, vmConfig, vm.config, "VM Config should match default with overrides")
require.NoError(t, vm.Shutdown(context.Background()))
}
Expand All @@ -415,6 +416,7 @@ func TestVMNilConfig(t *testing.T) {
// VM Config should match defaults if no config is passed in
var vmConfig config.Config
vmConfig.SetDefaults()
vmConfig.UpdateWithDefaults()
require.Equal(t, vmConfig, vm.config, "VM Config should match default config")
require.NoError(t, vm.Shutdown(context.Background()))
}
Expand Down

0 comments on commit 6cea7d1

Please sign in to comment.