diff options
Diffstat (limited to 'plugins/app/tests/plugin_sockets.go')
-rw-r--r-- | plugins/app/tests/plugin_sockets.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/app/tests/plugin_sockets.go b/plugins/app/tests/plugin_sockets.go index 2b7da312..585264f6 100644 --- a/plugins/app/tests/plugin_sockets.go +++ b/plugins/app/tests/plugin_sockets.go @@ -30,7 +30,7 @@ func (f *Foo2) Serve() chan error { // test payload for echo r := roadrunner.Payload{ Context: nil, - Body: []byte("test"), + Body: []byte(Response), } err = f.configProvider.UnmarshalKey(ConfigSection, conf) @@ -70,7 +70,7 @@ func (f *Foo2) Serve() chan error { return errCh } - if string(rsp.Body) != "test" { + if string(rsp.Body) != Response { errCh <- errors.E("response from worker is wrong", errors.Errorf("response: %s", rsp.Body)) return errCh } @@ -97,7 +97,7 @@ func (f *Foo2) Serve() chan error { } // echo of the "test" should be -> test - if string(rsp.Body) != "test" { + if string(rsp.Body) != Response { errCh <- errors.E("response from worker is wrong", errors.Errorf("response: %s", rsp.Body)) return errCh } |