Skip to content

Commit

Permalink
add missing check in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean committed Jan 30, 2024
1 parent a98f493 commit 9a9001e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/enablers/enableEpochsHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func createEnableEpochsConfig() config.EnableEpochs {
FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch: 93,
ChangeOwnerAddressCrossShardThroughSCEnableEpoch: 94,
CurrentRandomnessOnSortingEnableEpoch: 95,
DynamicESDTEnableEpoch: 96,
}
}

Expand Down Expand Up @@ -300,6 +301,7 @@ func TestEnableEpochsHandler_IsFlagEnabled(t *testing.T) {
require.True(t, handler.IsFlagEnabled(common.FixGasRemainingForSaveKeyValueFlag))
require.True(t, handler.IsFlagEnabled(common.IsChangeOwnerAddressCrossShardThroughSCFlag))
require.True(t, handler.IsFlagEnabled(common.CurrentRandomnessOnSortingFlag))
require.True(t, handler.IsFlagEnabled(common.DynamicESDTFlag))
}

func TestEnableEpochsHandler_GetActivationEpoch(t *testing.T) {
Expand Down Expand Up @@ -412,6 +414,7 @@ func TestEnableEpochsHandler_GetActivationEpoch(t *testing.T) {
require.Equal(t, cfg.ChangeOwnerAddressCrossShardThroughSCEnableEpoch, handler.GetActivationEpoch(common.IsChangeOwnerAddressCrossShardThroughSCFlag))
require.Equal(t, cfg.FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch, handler.GetActivationEpoch(common.FixGasRemainingForSaveKeyValueFlag))
require.Equal(t, cfg.CurrentRandomnessOnSortingEnableEpoch, handler.GetActivationEpoch(common.CurrentRandomnessOnSortingFlag))
require.Equal(t, cfg.DynamicESDTEnableEpoch, handler.GetActivationEpoch(common.DynamicESDTFlag))
}

func TestEnableEpochsHandler_IsInterfaceNil(t *testing.T) {
Expand Down

0 comments on commit 9a9001e

Please sign in to comment.