@@ -17,7 +17,7 @@ public UserAgentHeaderTests(SystemTextJsonAutoNegotiateServerTestFixture fixture
17
17
Fixture = fixture ;
18
18
}
19
19
20
- public async Task InitializeAsync ( ) => await Fixture . CreateServer ( ) . ConfigureAwait ( false ) ;
20
+ public async Task InitializeAsync ( ) => await Fixture . CreateServer ( ) ;
21
21
22
22
public Task DisposeAsync ( )
23
23
{
@@ -32,7 +32,7 @@ public async void Can_set_custom_user_agent()
32
32
ChatClient = Fixture . GetChatClient ( options => options . DefaultUserAgentRequestHeader = ProductInfoHeaderValue . Parse ( userAgent ) ) ;
33
33
34
34
var graphQLRequest = new GraphQLRequest ( "query clientUserAgent { clientUserAgent }" ) ;
35
- var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) . ConfigureAwait ( false ) ;
35
+ var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) ;
36
36
37
37
response . Errors . Should ( ) . BeNull ( ) ;
38
38
response . Data . clientUserAgent . Should ( ) . Be ( userAgent ) ;
@@ -48,7 +48,7 @@ public async void Default_user_agent_is_set_as_expected()
48
48
ChatClient = Fixture . GetChatClient ( ) ;
49
49
50
50
var graphQLRequest = new GraphQLRequest ( "query clientUserAgent { clientUserAgent }" ) ;
51
- var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) . ConfigureAwait ( false ) ;
51
+ var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) ;
52
52
53
53
response . Errors . Should ( ) . BeNull ( ) ;
54
54
response . Data . clientUserAgent . Should ( ) . Be ( expectedUserAgent ) ;
@@ -60,7 +60,7 @@ public async void No_Default_user_agent_if_set_to_null()
60
60
ChatClient = Fixture . GetChatClient ( options => options . DefaultUserAgentRequestHeader = null ) ;
61
61
62
62
var graphQLRequest = new GraphQLRequest ( "query clientUserAgent { clientUserAgent }" ) ;
63
- var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) . ConfigureAwait ( false ) ;
63
+ var response = await ChatClient . SendQueryAsync ( graphQLRequest , ( ) => new { clientUserAgent = string . Empty } ) ;
64
64
65
65
response . Errors . Should ( ) . HaveCount ( 1 ) ;
66
66
response . Errors [ 0 ] . Message . Should ( ) . Be ( "user agent header not set" ) ;
0 commit comments