Use envelope.NewAction in client_test.

This commit is contained in:
John Beisley 2022-03-26 11:22:07 +00:00
parent cd9f2cabb7
commit 87f0bd1614

View File

@ -2,7 +2,6 @@ package client
import ( import (
"context" "context"
"encoding/xml"
"fmt" "fmt"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
@ -92,12 +91,8 @@ func TestPerformAction(t *testing.T) {
c := New(ts.URL + "/endpointpath") c := New(ts.URL + "/endpointpath")
reqAction := &envelope.Action{ reqAction := envelope.NewAction("http://example.com/endpointns", "Foo",
XMLName: xml.Name{Space: "http://example.com/endpointns", Local: "Foo"}, &ActionArgs{Name: "World"})
Args: &ActionArgs{
Name: "World",
},
}
reply := &ActionReply{} reply := &ActionReply{}
replyAction := &envelope.Action{Args: reply} replyAction := &envelope.Action{Args: reply}