Skip to content

Commit c8f696d

Browse files
Copilotalexzautke
andcommitted
Fix build error: Update test to use ToJson instead of ToJsonAsync
The serialization API changed after the merge with develop branch. Updated the test to use the new synchronous ToJson() method instead of the obsolete ToJsonAsync() method. Co-authored-by: alexzautke <548617+alexzautke@users.noreply.github.com>
1 parent 841632b commit c8f696d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hl7.Fhir.Specification.Shared.Tests/Source/TerminologyTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public async Tasks.Task ExpandedValueSetShouldSerializeSuccessfully()
787787
var resource = await server.Expand(parameters);
788788

789789
// This should not throw a NullReferenceException
790-
var json = await resource.ToJsonAsync();
790+
var json = resource.ToJson();
791791

792792
// Verify the expansion was successful
793793
Assert.NotNull(json);

0 commit comments

Comments
 (0)