diff options
Diffstat (limited to 'core/caddy_test.go')
-rw-r--r-- | core/caddy_test.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/core/caddy_test.go b/core/caddy_test.go deleted file mode 100644 index 89ec3d045..000000000 --- a/core/caddy_test.go +++ /dev/null @@ -1,28 +0,0 @@ -package core - -/* -func TestCaddyStartStop(t *testing.T) { - corefile := "localhost:1984" - - for i := 0; i < 2; i++ { - err := Start(CorefileInput{Contents: []byte(corefile)}) - if err != nil { - t.Fatalf("Error starting, iteration %d: %v", i, err) - } - - client := http.Client{ - Timeout: time.Duration(2 * time.Second), - } - resp, err := client.Get("http://localhost:1984") - if err != nil { - t.Fatalf("Expected GET request to succeed (iteration %d), but it failed: %v", i, err) - } - resp.Body.Close() - - err = Stop() - if err != nil { - t.Fatalf("Error stopping, iteration %d: %v", i, err) - } - } -} -*/ |