Skip to content

Commit ae7512e

Browse files
committed
Fix tests
1 parent 296871c commit ae7512e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/receiver/discoveryreceiver/factory_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestLogsReceiver(t *testing.T) {
4545
receiver, err := factory.CreateLogs(context.Background(), params, cfg, consumertest.NewNop())
4646
assert.NoError(t, err)
4747
assert.NotNil(t, receiver)
48-
require.NoError(t, receiver.Start(context.Background(), componenttest.NewNopHost()))
48+
require.NoError(t, receiver.Start(context.Background(), newMdatagenNopHost()))
4949
require.NoError(t, receiver.Shutdown(context.Background()))
5050
}
5151

@@ -59,7 +59,7 @@ func TestMetricsReceiver(t *testing.T) {
5959
require.NoError(t, err)
6060
assert.NotNil(t, receiver)
6161

62-
require.NoError(t, receiver.Start(context.Background(), componenttest.NewNopHost()))
62+
require.NoError(t, receiver.Start(context.Background(), newMdatagenNopHost()))
6363
require.NoError(t, receiver.Shutdown(context.Background()))
6464
}
6565

0 commit comments

Comments
 (0)