summaryrefslogtreecommitdiff
path: root/tests/plugins/http/parse_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-05-27 00:13:54 +0300
committerValery Piashchynski <[email protected]>2021-05-27 00:13:54 +0300
commitcfaf3e5f8465d188546ef83600ad13c7dbde778c (patch)
tree982e5498e2a92561a83ef9dc8b9669b0bafebc50 /tests/plugins/http/parse_test.go
parentdc3c5455e5c9b32737a0620c8bdb8bda0226dba7 (diff)
- Fix naming after bulk refactoring handler2 -> handler
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http/parse_test.go')
-rw-r--r--tests/plugins/http/parse_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/http/parse_test.go b/tests/plugins/http/parse_test.go
index 832ecde4..32738ae0 100644
--- a/tests/plugins/http/parse_test.go
+++ b/tests/plugins/http/parse_test.go
@@ -3,7 +3,7 @@ package http
import (
"testing"
- handler2 "github.com/spiral/roadrunner/v2/pkg/worker_handler"
+ "github.com/spiral/roadrunner/v2/pkg/worker_handler"
)
var samples = []struct {
@@ -21,7 +21,7 @@ var samples = []struct {
func Test_FetchIndexes(t *testing.T) {
for i := 0; i < len(samples); i++ {
- r := handler2.FetchIndexes(samples[i].in)
+ r := handler.FetchIndexes(samples[i].in)
if !same(r, samples[i].out) {
t.Errorf("got %q, want %q", r, samples[i].out)
}
@@ -31,7 +31,7 @@ func Test_FetchIndexes(t *testing.T) {
func BenchmarkConfig_FetchIndexes(b *testing.B) {
for _, tt := range samples {
for n := 0; n < b.N; n++ {
- r := handler2.FetchIndexes(tt.in)
+ r := handler.FetchIndexes(tt.in)
if !same(r, tt.out) {
b.Fail()
}