Browse Source

add test for all with gid params

alpha
yedf2 4 years ago
parent
commit
d974d2111d
  1. 6
      test/api_test.go

6
test/api_test.go

@ -64,6 +64,12 @@ func TestAPIAll(t *testing.T) {
nextPos := m["next_position"].(string)
assert.NotEqual(t, "", nextPos)
resp, err = dtmcli.GetRestyClient().R().SetQueryParam("gid", dtmimp.GetFuncName()+"1").Get(dtmutil.DefaultHTTPServer + "/all")
assert.Nil(t, err)
m = map[string]interface{}{}
dtmimp.MustUnmarshalString(resp.String(), &m)
assert.Equal(t, 1, len(m["transactions"].([]interface{})))
resp, err = dtmcli.GetRestyClient().R().SetQueryParams(map[string]string{
"limit": "1",
"position": nextPos,

Loading…
Cancel
Save