Skip to content

Commit

Permalink
test: Fix flaky CustomEventWireModelTests (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Jan 31, 2025
1 parent 80d4c76 commit f7987c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using NewRelic.Agent.Core.Utilities;
using NewRelic.Agent.TestUtilities;
using System;
using NewRelic.Agent.Core.JsonConverters;

namespace NewRelic.Agent.Core.CustomEvents.Tests
{
Expand Down Expand Up @@ -140,7 +141,7 @@ public void CustomEvents_UserAttributes_AllAttributeTypesSerializeCorrectly()
var customEvent = new CustomEventWireModel(.5f, attribVals);

var serialized = JsonConvert.SerializeObject(customEvent);
var expectedSerialized = JsonConvert.SerializeObject(expectedSerialization);
var expectedSerialized = JsonConvert.SerializeObject(expectedSerialization, converters: [new EventAttributesJsonConverter()]);

Assert.That(serialized, Is.Not.Null);
Assert.That(serialized, Is.EqualTo(expectedSerialized));
Expand Down

0 comments on commit f7987c5

Please sign in to comment.