Skip to content

Commit

Permalink
fix errcheck failed issues for coralogix exporter (open-telemetry#10026)
Browse files Browse the repository at this point in the history
* fix errcheck failed issues for coralogix exporter

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* Update exporter/coralogixexporter/config_test.go

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
  • Loading branch information
2 people authored and kentquirk committed Jun 13, 2022
1 parent 4c98761 commit cad06a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions exporter/coralogixexporter/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// nolint:errcheck
package coralogixexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/coralogixexporter"

import (
Expand Down Expand Up @@ -76,9 +75,8 @@ func TestExporter(t *testing.T) {
apiConfig := cfg.Exporters[config.NewComponentID(typestr)].(*Config)
params := componenttest.NewNopExporterCreateSettings()
te := newCoralogixExporter(apiConfig, params)
te.client.startConnection(context.Background(), componenttest.NewNopHost())
assert.NotNil(t, te, "failed to create trace exporter")
assert.NoError(t, te.client.startConnection(context.Background(), componenttest.NewNopHost()))
td := ptrace.NewTraces()
err := te.tracesPusher(context.Background(), td)
assert.Nil(t, err)
assert.NoError(t, te.tracesPusher(context.Background(), td))
}

0 comments on commit cad06a3

Please sign in to comment.