Skip to content

Commit b5eac84

Browse files
authored
Add a RemoteQuery regression test to C# SDK (#3163)
# Description of Changes Add a RemoteQuery regression test to C# SDK to address issue: #3064 This adds on to existing regression tests, creating a rather small change. # API and ABI breaking changes Not breaking change # Expected complexity level and risk 1 # Testing - [X] Ran `dotnet test`, all tests pass
1 parent 86089e3 commit b5eac84

File tree

1 file changed

+5
-0
lines changed
  • sdks/csharp/examples~/regression-tests/client

1 file changed

+5
-0
lines changed

sdks/csharp/examples~/regression-tests/client/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ void OnSubscriptionApplied(SubscriptionEventContext context)
119119
waiting++;
120120
context.Reducers.ThrowError("this is an error");
121121

122+
// RemoteQuery test
123+
Log.Debug("Calling RemoteQuery");
124+
var remoteRows = context.Db.ExampleData.RemoteQuery("WHERE Id = 1").Result;
125+
Debug.Assert(remoteRows != null && remoteRows.Length > 0);
126+
122127
// Now unsubscribe and check that the unsubscribe is actually applied.
123128
Log.Debug("Calling Unsubscribe");
124129
waiting++;

0 commit comments

Comments
 (0)