summaryrefslogtreecommitdiff
path: root/tests/plugins/server
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/server')
-rw-r--r--tests/plugins/server/configs/.rr-tcp.yaml2
-rw-r--r--tests/plugins/server/plugin_pipes.go4
-rw-r--r--tests/plugins/server/plugin_sockets.go2
-rw-r--r--tests/plugins/server/plugin_tcp.go2
-rw-r--r--tests/plugins/server/tcp.php2
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/plugins/server/configs/.rr-tcp.yaml b/tests/plugins/server/configs/.rr-tcp.yaml
index 4582482f..6b9c9ddb 100644
--- a/tests/plugins/server/configs/.rr-tcp.yaml
+++ b/tests/plugins/server/configs/.rr-tcp.yaml
@@ -5,7 +5,7 @@ server:
env:
- RR_CONFIG: "/some/place/on/the/C134"
- RR_CONFIG2: "C138"
- relay: "tcp://localhost:9999"
+ relay: "tcp://127.0.0.1:9999"
relay_timeout: "20s"
logs:
mode: development
diff --git a/tests/plugins/server/plugin_pipes.go b/tests/plugins/server/plugin_pipes.go
index f1c13734..d136da1e 100644
--- a/tests/plugins/server/plugin_pipes.go
+++ b/tests/plugins/server/plugin_pipes.go
@@ -15,7 +15,7 @@ import (
const ConfigSection = "server"
const Response = "test"
-var testPoolConfig = pool.Config{
+var testPoolConfig = &pool.Config{
NumWorkers: 10,
MaxJobs: 100,
AllocateTimeout: time.Second * 10,
@@ -45,7 +45,7 @@ func (f *Foo) Serve() chan error {
const op = errors.Op("serve")
// test payload for echo
- r := payload.Payload{
+ r := &payload.Payload{
Context: nil,
Body: []byte(Response),
}
diff --git a/tests/plugins/server/plugin_sockets.go b/tests/plugins/server/plugin_sockets.go
index 0b2857e3..143a604c 100644
--- a/tests/plugins/server/plugin_sockets.go
+++ b/tests/plugins/server/plugin_sockets.go
@@ -30,7 +30,7 @@ func (f *Foo2) Serve() chan error {
conf := &server.Config{}
// test payload for echo
- r := payload.Payload{
+ r := &payload.Payload{
Context: nil,
Body: []byte(Response),
}
diff --git a/tests/plugins/server/plugin_tcp.go b/tests/plugins/server/plugin_tcp.go
index ef4cea39..57a2e6ea 100644
--- a/tests/plugins/server/plugin_tcp.go
+++ b/tests/plugins/server/plugin_tcp.go
@@ -30,7 +30,7 @@ func (f *Foo3) Serve() chan error {
conf := &server.Config{}
// test payload for echo
- r := payload.Payload{
+ r := &payload.Payload{
Context: nil,
Body: []byte(Response),
}
diff --git a/tests/plugins/server/tcp.php b/tests/plugins/server/tcp.php
index 873f25b2..acc1e1a5 100644
--- a/tests/plugins/server/tcp.php
+++ b/tests/plugins/server/tcp.php
@@ -8,7 +8,7 @@ use Spiral\RoadRunner;
require dirname(__DIR__) . "/../vendor/autoload.php";
-$relay = new Goridge\SocketRelay("localhost", 9999);
+$relay = new Goridge\SocketRelay("127.0.0.1", 9999);
$rr = new RoadRunner\Worker($relay);
while ($in = $rr->waitPayload()) {