Skip to content

Commit

Permalink
increase the timeout of the proxy client during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Nov 9, 2023
1 parent 2d40786 commit f1ead2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenAI-DotNet-Tests/AbstractTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Hosting;
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using System.Net.Http;

Expand Down Expand Up @@ -28,6 +29,7 @@ protected AbstractTestFixture()
var domain = $"{HttpClient.BaseAddress?.Authority}:{HttpClient.BaseAddress?.Port}";
var settings = new OpenAIClientSettings(domain: domain);
var auth = new OpenAIAuthentication(TestUserToken);
HttpClient.Timeout = TimeSpan.FromMinutes(3);
OpenAIClient = new OpenAIClient(auth, settings, HttpClient)
{
EnableDebug = true
Expand Down

0 comments on commit f1ead2a

Please sign in to comment.