Skip to content

Commit

Permalink
Fix call to json.NewSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomconte committed Oct 18, 2021
1 parent 50cd22d commit 57f9908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/outputs/event_hubs/event_hubs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (eh *mockEventHub) SendBatch(ctx context.Context, iterator eventhub.BatchIt
/* End wrapper interface */

func TestInitAndWrite(t *testing.T) {
serializer, _ := json.NewSerializer(time.Second)
serializer, _ := json.NewSerializer(time.Second, "")
mockHub := &mockEventHub{}
e := &EventHubs{
Hub: mockHub,
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestInitAndWriteIntegration(t *testing.T) {
testHubCS := os.Getenv("EVENTHUB_CONNECTION_STRING") + ";EntityPath=" + entity.Name

// Configure the plugin to target the newly created hub
serializer, _ := json.NewSerializer(time.Second)
serializer, _ := json.NewSerializer(time.Second, "")

e := &EventHubs{
Hub: &eventHub{},
Expand Down

0 comments on commit 57f9908

Please sign in to comment.