Add missing assertion
This commit is contained in:
parent
c523032c86
commit
795b7ebb56
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ func TestAPITLSconfig(t *testing.T) {
|
|||
// Any error in the TLSConfig should return an error here.
|
||||
cfg.TLSConfig = TLSConfig{}
|
||||
tlsCfg, err = cfg.APITLSConfig()
|
||||
require.Nil(t, tlsCfg)
|
||||
require.NotNil(t, err)
|
||||
require.EqualError(t, err, "missing crt or key")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue