Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix more tests
Browse files Browse the repository at this point in the history
atoulme committed Mar 18, 2024

Unverified

The email in this signature doesn’t match the committer email.
1 parent c14d51b commit 945f52a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions receiver/cloudfoundryreceiver/receiver_test.go
Original file line number Diff line number Diff line change
@@ -37,19 +37,3 @@ func TestDefaultValidReceiver(t *testing.T) {
err = receiver.Shutdown(ctx)
require.NoError(t, err)
}

// Test to make sure start fails with invalid consumer
func TestInvalidConsumer(t *testing.T) {
factory := NewFactory()
cfg := factory.CreateDefaultConfig().(*Config)
params := receivertest.NewNopCreateSettings()

receiver, err := newCloudFoundryReceiver(
params,
*cfg,
nil,
)

require.EqualError(t, err, "nil next Consumer")
require.Nil(t, receiver, "receiver creation failed")
}

0 comments on commit 945f52a

Please sign in to comment.