Browse Source

Merge pull request #103 from li-xiao-shuang/feature_#97

add test
pull/138/head
yedf2 4 years ago
committed by GitHub
parent
commit
7322e456d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      test/api_test.go

6
test/api_test.go

@ -73,3 +73,9 @@ func TestAPIAll(t *testing.T) {
nextPos3 := m["next_position"].(string) nextPos3 := m["next_position"].(string)
assert.Equal(t, "", nextPos3) assert.Equal(t, "", nextPos3)
} }
func TestDtmMetrics(t *testing.T) {
rest, err := dtmimp.RestyClient.R().Get("http://localhost:36789/api/metrics")
assert.Nil(t, err)
assert.Equal(t, rest.StatusCode(), 200)
}

Loading…
Cancel
Save