fix test by using correct assertion
NewRelicEmitter URL is the complete url and not the base URL as configuredin the NewRelicConfig
@@ -3,6 +3,7 @@ package emitter_test
import (
"compress/gzip"
"encoding/json"
+ "fmt"
"io/ioutil"
"net/http"
"time"
@@ -158,7 +159,7 @@ var _ = Describe("NewRelicEmitter", func() {
e.Emit(testLogger, testEvent)
newRelicEmitter := e.(*emitter.NewRelicEmitter)
- Expect(newRelicEmitter.Url).To(Equal(server.URL()))
+ Expect(newRelicEmitter.Url).To(Equal(fmt.Sprintf("%s/v1/accounts/123456/events", server.URL())))
Eventually(server.ReceivedRequests).Should(HaveLen(1))
})
