Skip to content

Commit acfb19f

Browse files
Copilotrossmills99
andcommitted
Merge new options into existing test as requested
Co-authored-by: rossmills99 <[email protected]>
1 parent 325b213 commit acfb19f

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,7 @@ public async Task PostCursorAsync_ShouldSucceed_WhenUsingOtherOptions()
148148
new Dictionary<string, object> { ["testString"] = "robbery" },
149149
new PostCursorOptions
150150
{
151-
MaxRuntime = 10
152-
});
153-
154-
Assert.Single(response.Result);
155-
Assert.Equal("This is a robbery", response.Result.First().MyProperty);
156-
}
157-
158-
[Fact]
159-
public async Task PostCursorAsync_ShouldSucceed_WhenUsingNewOptions()
160-
{
161-
var response = await _cursorApi.PostCursorAsync<MyModel>(
162-
"FOR doc IN [{ myProperty: CONCAT('This is a ', @testString) }] LIMIT 1 RETURN doc",
163-
new Dictionary<string, object> { ["testString"] = "test" },
164-
new PostCursorOptions
165-
{
151+
MaxRuntime = 10,
166152
AllowDirtyReads = false,
167153
AllowRetry = true,
168154
Cache = false,
@@ -176,7 +162,7 @@ public async Task PostCursorAsync_ShouldSucceed_WhenUsingNewOptions()
176162
});
177163

178164
Assert.Single(response.Result);
179-
Assert.Equal("This is a test", response.Result.First().MyProperty);
165+
Assert.Equal("This is a robbery", response.Result.First().MyProperty);
180166
}
181167

182168
[Fact]

0 commit comments

Comments
 (0)