Merged in bugfix/toomanythreads (pull request #136)
Too Many Threads * dropthreads * assertstatus * assertstatus
This commit is contained in:
@@ -2,6 +2,7 @@ package endtoend_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
@@ -61,6 +62,7 @@ func TestCollectorService(t *testing.T) {
|
||||
|
||||
collRes, err := client.GetCollectorByClientIdWithResponse(ctx, id)
|
||||
require.NoError(t, err)
|
||||
test.AssertStatus(t, http.StatusOK, collRes.HTTPResponse)
|
||||
assert.Equal(t, id, collRes.JSON200.ClientId)
|
||||
assert.Equal(t, int32(0), collRes.JSON200.ActiveVersion)
|
||||
assert.Equal(t, int32(0), collRes.JSON200.LatestVersion)
|
||||
@@ -83,10 +85,11 @@ func TestCollectorService(t *testing.T) {
|
||||
Fields: &fields,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, 200, uRes.StatusCode())
|
||||
test.AssertStatus(t, http.StatusOK, uRes.HTTPResponse)
|
||||
|
||||
collRes, err = client.GetCollectorByClientIdWithResponse(ctx, id)
|
||||
require.NoError(t, err)
|
||||
test.AssertStatus(t, http.StatusOK, collRes.HTTPResponse)
|
||||
assert.Equal(t, id, collRes.JSON200.ClientId)
|
||||
assert.Equal(t, int32(1), collRes.JSON200.ActiveVersion)
|
||||
assert.Equal(t, int32(1), collRes.JSON200.LatestVersion)
|
||||
|
||||
Reference in New Issue
Block a user