Skip to content

Commit 7ebc55c

Browse files
committed
Fix GitHubIssue4703 test
This commit fixes the GitHubIssue4703 test to use a client that always uses the default internal serializer. Utf8Json and Json.NET serialize ValueTuples with different Item* casing - the former always emits pascal casing whilst Json.NET will case according to serializer settings (cherry picked from commit 6e6be17)
1 parent 20e1353 commit 7ebc55c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Tests.Reproduce/GithubIssue4703.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Text;
77
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
8+
using Elasticsearch.Net;
89
using FluentAssertions;
910
using Nest;
1011
using Tests.Core.Client;
@@ -16,8 +17,11 @@ public class GithubIssue4703
1617
[U]
1718
public void NullableValueTupleDoesNotThrow()
1819
{
20+
var connectionSettings = new ConnectionSettings(new InMemoryConnection()).DisableDirectStreaming();
21+
var client = new ElasticClient(connectionSettings);
22+
1923
Func<IndexResponse> action = () =>
20-
TestClient.DefaultInMemoryClient.Index(
24+
client.Index(
2125
new ExampleDoc
2226
{
2327
tupleNullable = ("somestring", 42),

0 commit comments

Comments
 (0)