Skip to content

Commit e98c2ea

Browse files
committed
Fix tests
1 parent 42a64a3 commit e98c2ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

url_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func TestGetUrl(t *testing.T) {
119119
}
120120

121121
for input, output := range inputOutput {
122-
urlNew, err := getURL("", "", input)
122+
urlNew, err := getURL("", 9200, "", input)
123123
assert.Nil(t, err)
124124
assert.Equal(t, output, urlNew, fmt.Sprintf("input: %v", input))
125125
}
@@ -130,7 +130,7 @@ func TestGetUrl(t *testing.T) {
130130
"http://username:password@es.found.io:9324": "http://username:password@es.found.io:9324/hello",
131131
}
132132
for input, output := range inputOutputWithDefaults {
133-
urlNew, err := getURL("https", "/hello", input)
133+
urlNew, err := getURL("https", 9200, "/hello", input)
134134
assert.Nil(t, err)
135135
assert.Equal(t, output, urlNew)
136136
}

0 commit comments

Comments
 (0)