Skip to content

Commit

Permalink
[receiver/wavefrontreceiver]Enable errcheck in receiver/wavefrontrece…
Browse files Browse the repository at this point in the history
…iver (open-telemetry#12081)

Enable errcheck in receiver/wavefrontreceiver

Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 authored and Konig-Corey committed Jul 6, 2022
1 parent 8fd478a commit 5400189
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions receiver/wavefrontreceiver/receiver_test.go
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// nolint:errcheck
package wavefrontreceiver

import (
Expand Down Expand Up @@ -47,7 +46,10 @@ func Test_wavefrontreceiver_EndToEnd(t *testing.T) {
require.NoError(t, err)

require.NoError(t, rcvr.Start(context.Background(), componenttest.NewNopHost()))
defer rcvr.Shutdown(context.Background())

defer func() {
assert.NoError(t, rcvr.Shutdown(context.Background()))
}()

tests := []struct {
name string
Expand Down

0 comments on commit 5400189

Please sign in to comment.