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