Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
bmf-san committed Jun 25, 2024
1 parent 0be8ff7 commit 812b6e3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions gondola_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestRunWithTLS(t *testing.T) {
// with TLS config
data := `
proxy:
port: 443
port: 5443
read_header_timeout: 2000
shutdown_timeout: 3000
tls_cert_path: testdata/certificates/cert.pem
Expand All @@ -228,7 +228,7 @@ log_level: -4
gondola.Run()
}()

time.Sleep(20 * time.Second)
time.Sleep(5 * time.Second)

for _, test := range []struct {
name string
Expand All @@ -237,21 +237,21 @@ log_level: -4
body string
code int
}{
{
name: "request to backend1",
reqPath: "https://backend1.local",
body: "backend1",
code: http.StatusOK,
},
{
name: "request to backend2",
reqPath: "https://backend2.local",
body: "backend2",
code: http.StatusOK,
},
// {
// name: "request to backend1",
// reqPath: "https://backend1.local",
// body: "backend1",
// code: http.StatusOK,
// },
// {
// name: "request to backend2",
// reqPath: "https://backend2.local",
// body: "backend2",
// code: http.StatusOK,
// },
{
name: "request to static file",
reqPath: "https://localhost/public/index.html",
reqPath: "https://localhost:5443/public/index.html",
body: "test",
code: http.StatusOK,
},
Expand Down

0 comments on commit 812b6e3

Please sign in to comment.