- fix retry bug (request can not be reused).
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dadaapi
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
@@ -161,7 +162,7 @@ func TestCallbackMsgPlayback(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, v := range playbackData {
|
||||
_, err := utils.SendFakeRequest("POST", v[1], v[0], "application/json; charset=utf-8")
|
||||
_, err := utils.SendFakeRequest(http.MethodPost, v[1], v[0], "application/json; charset=utf-8")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user