(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestConfigValidateBasic(t *testing.T) { |
| 31 | cfg := DefaultConfig() |
| 32 | assert.NoError(t, cfg.ValidateBasic()) |
| 33 | |
| 34 | // tamper with timeout_propose |
| 35 | cfg.Consensus.TimeoutPropose = -10 * time.Second |
| 36 | assert.Error(t, cfg.ValidateBasic()) |
| 37 | } |
| 38 | |
| 39 | func TestTLSConfiguration(t *testing.T) { |
| 40 | assert := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…