mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-27 04:07:28 +00:00
noot
This commit is contained in:
parent
b98c89fbb6
commit
01cb878087
4 changed files with 37 additions and 61 deletions
|
|
@ -19,12 +19,13 @@ func AssertLoadError(t *testing.T, rawConfig string, configType string, expected
|
|||
require.NoError(t, err)
|
||||
err = tc.LaunchCaddy()
|
||||
require.NoError(t, err)
|
||||
defer tc.CleanupCaddy()
|
||||
|
||||
err = tc.LoadConfig(rawConfig, configType)
|
||||
if !strings.Contains(err.Error(), expectedError) {
|
||||
t.Errorf("expected error \"%s\" but got \"%s\"", expectedError, err.Error())
|
||||
}
|
||||
err = tc.CleanupCaddy()
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
// CompareAdapt adapts a config and then compares it against an expected result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue