summaryrefslogtreecommitdiffhomepage
path: root/test/go
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-11-08 18:37:02 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2023-11-08 18:37:02 +0000
commit0b85fe29f7e49c88cab88aa9303d5885fa9c9dd5 (patch)
tree329ee87058eea8631596c802c23f39b78ad9446b /test/go
parent78c133d0ca3c343135e123a087970837afdebed1 (diff)
downloadunit-0b85fe29f7e49c88cab88aa9303d5885fa9c9dd5.tar.gz
unit-0b85fe29f7e49c88cab88aa9303d5885fa9c9dd5.tar.bz2
Tests: 8XXX used as default port range.
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
Diffstat (limited to 'test/go')
-rw-r--r--test/go/404/app.go2
-rw-r--r--test/go/command_line_arguments/app.go2
-rw-r--r--test/go/cookies/app.go2
-rw-r--r--test/go/empty/app.go2
-rw-r--r--test/go/get_variables/app.go2
-rw-r--r--test/go/mirror/app.go2
-rw-r--r--test/go/ns_inspect/app.go2
-rw-r--r--test/go/post_variables/app.go2
-rw-r--r--test/go/variables/app.go2
9 files changed, 9 insertions, 9 deletions
diff --git a/test/go/404/app.go b/test/go/404/app.go
index 7eba2cf4..255f5dac 100644
--- a/test/go/404/app.go
+++ b/test/go/404/app.go
@@ -18,5 +18,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/command_line_arguments/app.go b/test/go/command_line_arguments/app.go
index 1101e1cf..5da12ffe 100644
--- a/test/go/command_line_arguments/app.go
+++ b/test/go/command_line_arguments/app.go
@@ -19,5 +19,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/cookies/app.go b/test/go/cookies/app.go
index 2216e153..49779d35 100644
--- a/test/go/cookies/app.go
+++ b/test/go/cookies/app.go
@@ -15,5 +15,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/empty/app.go b/test/go/empty/app.go
index 9326a19b..61e27f67 100644
--- a/test/go/empty/app.go
+++ b/test/go/empty/app.go
@@ -9,5 +9,5 @@ func handler(w http.ResponseWriter, r *http.Request) {}
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/get_variables/app.go b/test/go/get_variables/app.go
index 1c0205a8..d70669f2 100644
--- a/test/go/get_variables/app.go
+++ b/test/go/get_variables/app.go
@@ -13,5 +13,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/mirror/app.go b/test/go/mirror/app.go
index 78f047c3..daf55df8 100644
--- a/test/go/mirror/app.go
+++ b/test/go/mirror/app.go
@@ -17,5 +17,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/ns_inspect/app.go b/test/go/ns_inspect/app.go
index 570580e6..977f0d9c 100644
--- a/test/go/ns_inspect/app.go
+++ b/test/go/ns_inspect/app.go
@@ -97,5 +97,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/post_variables/app.go b/test/go/post_variables/app.go
index e6279ac6..06900d4c 100644
--- a/test/go/post_variables/app.go
+++ b/test/go/post_variables/app.go
@@ -15,5 +15,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}
diff --git a/test/go/variables/app.go b/test/go/variables/app.go
index 4be60cb7..9ef18aae 100644
--- a/test/go/variables/app.go
+++ b/test/go/variables/app.go
@@ -26,5 +26,5 @@ func handler(w http.ResponseWriter, r *http.Request) {
func main() {
http.HandleFunc("/", handler)
- unit.ListenAndServe(":7080", nil)
+ unit.ListenAndServe(":8080", nil)
}