Skip to content

Commit 3b614c3

Browse files
Copilotfredbi
andauthored
fix: correct spelling of 'Organ trail' to 'Oregon Trail' in request_test.go (#449)
Agent-Logs-Url: https://github.com/go-openapi/runtime/sessions/d3ddb278-274a-4498-a15a-9ef6041becb6 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: fredbi <14262513+fredbi@users.noreply.github.com>
1 parent 0a653d3 commit 3b614c3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

client/internal/request/request_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var testProducers = map[string]runtime.Producer{
3838
const (
3939
valBirdWatching = "Bird watching"
4040
valJohn = "John"
41-
valOrganTrail = "Organ trail"
41+
valOregonTrail = "Oregon Trail"
4242
valTom = "Tom"
4343
testFile1 = "request.go"
4444
testFile2 = "request_test.go"
@@ -126,7 +126,7 @@ func mustGetFile(pth string) *os.File {
126126
func TestBuildRequest_SetBody(t *testing.T) {
127127
r := New(http.MethodGet, "/flats/{id}/?hello=world", nil)
128128

129-
bd := []struct{ Name, Hobby string }{{valTom, valOrganTrail}, {valJohn, valBirdWatching}}
129+
bd := []struct{ Name, Hobby string }{{valTom, valOregonTrail}, {valJohn, valBirdWatching}}
130130

131131
_ = r.SetBodyParam(bd)
132132
assert.Equal(t, bd, r.payload)
@@ -210,7 +210,7 @@ func TestBuildRequest_BuildHTTP_NoPayload(t *testing.T) {
210210
}
211211

212212
func TestBuildRequest_BuildHTTP_Payload(t *testing.T) {
213-
bd := []struct{ Name, Hobby string }{{valTom, valOrganTrail}, {valJohn, valBirdWatching}}
213+
bd := []struct{ Name, Hobby string }{{valTom, valOregonTrail}, {valJohn, valBirdWatching}}
214214
reqWrtr := runtime.ClientRequestWriterFunc(func(req runtime.ClientRequest, _ strfmt.Registry) error {
215215
_ = req.SetBodyParam(bd)
216216
_ = req.SetQueryParam("hello", "world")
@@ -237,7 +237,7 @@ func TestBuildRequest_BuildHTTP_Payload(t *testing.T) {
237237
}
238238

239239
func TestBuildRequest_BuildHTTP_SetsInAuth(t *testing.T) {
240-
bd := []struct{ Name, Hobby string }{{valTom, valOrganTrail}, {valJohn, valBirdWatching}}
240+
bd := []struct{ Name, Hobby string }{{valTom, valOregonTrail}, {valJohn, valBirdWatching}}
241241
reqWrtr := runtime.ClientRequestWriterFunc(func(req runtime.ClientRequest, _ strfmt.Registry) error {
242242
_ = req.SetBodyParam(bd)
243243
_ = req.SetQueryParam("hello", "wrong")
@@ -277,7 +277,7 @@ func TestBuildRequest_BuildHTTP_XMLPayload(t *testing.T) {
277277
XMLName xml.Name `xml:"person"`
278278
Name string `xml:"name"`
279279
Hobby string `xml:"hobby"`
280-
}{{xml.Name{}, valTom, valOrganTrail}, {xml.Name{}, valJohn, valBirdWatching}}
280+
}{{xml.Name{}, valTom, valOregonTrail}, {xml.Name{}, valJohn, valBirdWatching}}
281281
reqWrtr := runtime.ClientRequestWriterFunc(func(req runtime.ClientRequest, _ strfmt.Registry) error {
282282
_ = req.SetBodyParam(bd)
283283
_ = req.SetQueryParam("hello", "world")

0 commit comments

Comments
 (0)