Skip to content

Commit

Permalink
fix signature in test
Browse files Browse the repository at this point in the history
  • Loading branch information
t00mas committed May 24, 2024
1 parent d99dc78 commit 3f978dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connector/servicegraphconnector/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ func TestExtraDimensionsLabels(t *testing.T) {

set := componenttest.NewNopTelemetrySettings()
set.Logger = zaptest.NewLogger(t)
conn := newConnector(set, cfg, newMockMetricsExporter())
conn, err := newConnector(set, cfg, newMockMetricsExporter())
assert.NoError(t, err)

assert.NoError(t, conn.Start(context.Background(), componenttest.NewNopHost()))
defer require.NoError(t, conn.Shutdown(context.Background()))
Expand Down Expand Up @@ -505,7 +506,8 @@ func TestVirtualNodeServerLabels(t *testing.T) {
}

for _, tc := range testcases {
conn := newConnector(set, cfg, newMockMetricsExporter())
conn, err := newConnector(set, cfg, newMockMetricsExporter())
assert.NoError(t, err)
assert.NoError(t, conn.Start(context.Background(), componenttest.NewNopHost()))

td, err := golden.ReadTraces(tc.trace)
Expand Down

0 comments on commit 3f978dd

Please sign in to comment.