Skip to content

Commit

Permalink
Merge branch 'main' into chore/aure-site-extension-functions-support
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Jan 31, 2025
2 parents f2f5f4f + f7987c5 commit 60c47eb
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 60c47eb

Please sign in to comment.