Skip to content

Commit

Permalink
added system.text and fixed bull check in test
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Perumal <[email protected]>
  • Loading branch information
divzi-p committed Dec 10, 2024
1 parent 1b7e65c commit 14c095e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Dapr.Client.Test/StateApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Dapr.Client.Test
using Xunit;
using System.Threading;
using System.Net.Http;
using System.Text;

public class StateApiTest
{
Expand Down Expand Up @@ -1549,7 +1550,7 @@ private Autogenerated.GetStateResponse MakeGetByteStateResponse(ReadOnlyMemory<b
var response = new Autogenerated.GetStateResponse();

// convert to byte string if state is not null
if (state.Span != null)
if (!state.Span.IsEmpty)
{
response.Data = ByteString.CopyFrom(state.Span);
}
Expand Down

0 comments on commit 14c095e

Please sign in to comment.