Skip to content

Commit

Permalink
Fix envelope stream connector tests
Browse files Browse the repository at this point in the history
Starts producer before streaming from EnvelopeStreamConnector in test,
so that the address of the producer is not nil. gRPC dialling will panic
if given a nil address.
  • Loading branch information
ctlong committed Mar 6, 2023
1 parent fda3d62 commit 8d2683d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions envelope_stream_connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ var _ = Describe("Connector", func() {
It("won't panic when context canceled", func() {
producer, err := newFakeEventProducer()
Expect(err).NotTo(HaveOccurred())
producer.start()
defer producer.stop()

tlsConf, err := loggregator.NewIngressTLSConfig(
fixture("CA.crt"),
Expand Down

0 comments on commit 8d2683d

Please sign in to comment.