From 1062d79a374e8f84c3ea2445cb5de46b372a6c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E8=8C=AB=E5=B0=91=E5=B9=B4?= <284751067@qq.com> Date: Tue, 17 Aug 2021 14:42:20 +0800 Subject: [PATCH] Update gin_integration_test.go test --- gin_integration_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gin_integration_test.go b/gin_integration_test.go index d535b2c7..57704272 100644 --- a/gin_integration_test.go +++ b/gin_integration_test.go @@ -70,21 +70,6 @@ func TestRunServer(t *testing.T) { testRequest(t, "http://localhost:8090/example") } -func TestRunTLS(t *testing.T) { - router := New() - go func() { - router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") }) - - assert.NoError(t, router.RunTLS(":8443", "./testdata/certificate/cert.pem", "./testdata/certificate/key.pem")) - }() - - // have to wait for the goroutine to start and run the server - // otherwise the main thread will complete - time.Sleep(5 * time.Millisecond) - - assert.Error(t, router.RunTLS(":8443", "./testdata/certificate/cert.pem", "./testdata/certificate/key.pem")) - testRequest(t, "https://localhost:8443/example") -} func TestPusher(t *testing.T) { var html = template.Must(template.New("https").Parse(`