Skip to content

Commit

Permalink
test: improve test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Feb 7, 2024
1 parent 1e552de commit 9b4f7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/beater/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ func TestWrapServer(t *testing.T) {
req := makeTransactionRequest(t, srv.URL)
req.Header.Add("Content-Type", "application/x-ndjson")
res, err := srv.Client.Do(req)
assert.NoError(t, err)
require.NoError(t, err)
res.Body.Close()

doc := <-docs
Expand Down
2 changes: 1 addition & 1 deletion internal/beater/tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestServerTracingEnabled(t *testing.T) {
// Make an HTTP request to the server, which should be traced
// if instrumentation is enabled.
resp, err := srv.Client.Get(srv.URL + "/foo")
assert.NoError(t, err)
require.NoError(t, err)
resp.Body.Close()

if enabled {
Expand Down

0 comments on commit 9b4f7bf

Please sign in to comment.