Skip to content

Commit

Permalink
Fix another graphQL test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 11, 2024
1 parent e1f7f20 commit a1bf931
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Tgstation.Server.Tests/Live/RawRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ await serverClient.Users.Update(new UserUpdateRequest

static async Task TestGraphQLLogin(IRestServerClientFactory clientFactory, IRestServerClient restClient, CancellationToken cancellationToken)
{
if (!MultiServerClient.UseGraphQL)
return;

await using var gqlClient = new GraphQLServerClientFactory(clientFactory).CreateUnauthenticated(restClient.Url);
var result = await gqlClient.RunOperation(client => client.Login.ExecuteAsync(cancellationToken), cancellationToken);

Expand Down

0 comments on commit a1bf931

Please sign in to comment.