github.com/jpmorganchase/quorum@v21.1.0+incompatible/params/network_params_test.go (about)

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