network_params_test.go 409 B

1234567891011121314151617
  1. package params
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestQuorumImmutabilityThresholdParams(t *testing.T) {
  7. immutabilityThreshold := GetImmutabilityThreshold()
  8. assert.Equal(t, 90000, immutabilityThreshold)
  9. // call Set to set the values
  10. SetQuorumImmutabilityThreshold(20000)
  11. immutabilityThreshold = GetImmutabilityThreshold()
  12. assert.Equal(t, 20000, immutabilityThreshold)
  13. }