summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/tools/http_server
diff options
context:
space:
mode:
authorAdrian Villin <avillin@cisco.com>2024-06-06 04:26:30 -0400
committerDave Wallace <dwallacelf@gmail.com>2024-06-12 23:38:25 +0000
commiteaa7d91ad77f9c6691b42b0e9f631166b4bcf44f (patch)
tree702ea477d752d49a4dc5690d538e6fc666b435e8 /extras/hs-test/tools/http_server
parent6c37845a87588da8082b931bfce8c680ba1a9ad6 (diff)
hs-test: improved suite teardown and replaced PIDs with PPIDs
- Fixed an issue where containers wouldn't stop and get removed when a test run is interrupted - Replaced PIDs with Ginkgo process indexes + PPIDs - Fixed CPU allocation for envoy and nginx-ldp containers - All container logs should now get saved properly Type: test Change-Id: I4c737c1d326390494c0dda1ec6d3fc1f04f51663 Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/tools/http_server')
-rw-r--r--extras/hs-test/tools/http_server/http_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hs-test/tools/http_server/http_server.go b/extras/hs-test/tools/http_server/http_server.go
index d2ab3851643..a65aa7556e7 100644
--- a/extras/hs-test/tools/http_server/http_server.go
+++ b/extras/hs-test/tools/http_server/http_server.go
@@ -8,13 +8,13 @@ import (
)
func main() {
- if len(os.Args) < 3 {
+ if len(os.Args) < 4 {
fmt.Println("arg expected")
os.Exit(1)
}
http.HandleFunc("/httpTestFile", func(w http.ResponseWriter, r *http.Request) {
- file, _ := os.Open("httpTestFile" + os.Args[2])
+ file, _ := os.Open(os.Args[3] + "httpTestFile" + os.Args[2])
defer file.Close()
io.Copy(w, file)
})