@@ -711,11 +711,11 @@ func TestFormDataDisableWarn(t *testing.T) {
711711 c := dc ()
712712 c .SetFormData (map [string ]string {"zip_code" : "00000" , "city" : "Los Angeles" }).
713713 SetContentLength (true ).
714- SetDebug (true ).
715714 SetDisableWarn (true )
716715 c .outputLogTo (io .Discard )
717716
718717 resp , err := c .R ().
718+ SetDebug (true ).
719719 SetFormData (map [string ]string {"first_name" : "Jeevanandam" , "last_name" : "M" , "zip_code" : "00001" }).
720720 SetBasicAuth ("myuser" , "mypass" ).
721721 Post (ts .URL + "/profile" )
@@ -1748,14 +1748,15 @@ func TestPathParamURLInput(t *testing.T) {
17481748 ts := createGetServer (t )
17491749 defer ts .Close ()
17501750
1751- c := dc ().SetDebug ( true ).
1751+ c := dc ().
17521752 SetBaseURL (ts .URL ).
17531753 SetPathParams (map [string ]string {
17541754 "userId" : "sample@sample.com" ,
17551755 "path" : "users/developers" ,
17561756 })
17571757
17581758 resp , err := c .R ().
1759+ SetDebug (true ).
17591760 SetPathParams (map [string ]string {
17601761 "subAccountId" : "100002" ,
17611762 "website" : "https://example.com" ,
@@ -1900,7 +1901,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
19001901
19011902 // upload a text file with no more than 512 bytes
19021903 output = bytes .NewBufferString ("" )
1903- resp , err = New ().SetDebug (true ).outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1904+ resp , err = New ().outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1905+ SetDebug (true ).
19041906 SetFile ("file" , filepath .Join (getTestDataPath (), "text-file.txt" )).
19051907 SetHeader ("Content-Type" , "text/plain" ).
19061908 Post (ts .URL + "/upload" )
@@ -1927,7 +1929,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
19271929
19281930 // post form with no more than 512 bytes data
19291931 output = bytes .NewBufferString ("" )
1930- resp , err = New ().SetDebug (true ).outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1932+ resp , err = New ().outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1933+ SetDebug (true ).
19311934 SetFormData (map [string ]string {
19321935 "first_name" : "Alex" ,
19331936 "last_name" : "C" ,
@@ -1954,7 +1957,8 @@ func TestDebugLoggerRequestBodyTooLarge(t *testing.T) {
19541957
19551958 // post slice with more than 512 bytes data
19561959 output = bytes .NewBufferString ("" )
1957- resp , err = New ().SetDebug (true ).outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1960+ resp , err = New ().outputLogTo (output ).SetDebugBodyLimit (debugBodySizeLimit ).R ().
1961+ SetDebug (true ).
19581962 SetBody ([]string {strings .Repeat ("C" , int (debugBodySizeLimit ))}).
19591963 SetBasicAuth ("myuser" , "mypass" ).
19601964 Post (formTs .URL + "/profile" )
0 commit comments