aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest/caddytest.go
diff options
context:
space:
mode:
authorViktor Szépe <[email protected]>2024-05-10 16:08:54 +0200
committerGitHub <[email protected]>2024-05-10 08:08:54 -0600
commitd7e3a1974ba968afd84faad207b8717f5faf6ad6 (patch)
treed2a4a3976571e2aca697ad38b32801086b68b347 /caddytest/caddytest.go
parente60148ecc39f78214f8fc47d3d94f7099b655f56 (diff)
downloadcaddy-d7e3a1974ba968afd84faad207b8717f5faf6ad6.tar.gz
caddy-d7e3a1974ba968afd84faad207b8717f5faf6ad6.zip
Fix typos (#6311)
* Fix typos * Revert * Revert to "htlm" * fix indentations
Diffstat (limited to 'caddytest/caddytest.go')
-rw-r--r--caddytest/caddytest.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go
index deb567b3b..3c6f95da7 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -36,7 +36,7 @@ type Defaults struct {
// Port we expect caddy to listening on
AdminPort int
// Certificates we expect to be loaded before attempting to run the tests
- Certifcates []string
+ Certificates []string
// TestRequestTimeout is the time to wait for a http request to
TestRequestTimeout time.Duration
// LoadRequestTimeout is the time to wait for the config to be loaded against the caddy server
@@ -46,7 +46,7 @@ type Defaults struct {
// Default testing values
var Default = Defaults{
AdminPort: 2999, // different from what a real server also running on a developer's machine might be
- Certifcates: []string{"/caddy.localhost.crt", "/caddy.localhost.key"},
+ Certificates: []string{"/caddy.localhost.crt", "/caddy.localhost.key"},
TestRequestTimeout: 5 * time.Second,
LoadRequestTimeout: 5 * time.Second,
}
@@ -231,7 +231,7 @@ const initConfig = `{
// designated path and Caddy sub-process is running.
func validateTestPrerequisites(t testing.TB) error {
// check certificates are found
- for _, certName := range Default.Certifcates {
+ for _, certName := range Default.Certificates {
if _, err := os.Stat(getIntegrationDir() + certName); errors.Is(err, fs.ErrNotExist) {
return fmt.Errorf("caddy integration test certificates (%s) not found", certName)
}