Skip to content

Commit

Permalink
fix tests tear down (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
NRHelmi authored Dec 1, 2022
1 parent ab4651c commit 862e413
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RelationalAI.Test/TestConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public class EngineFixture : IDisposable
// Semaphore is used to lock the CreateEngine function so that only one test creates the engine.
private static readonly SemaphoreSlim semaphoreSlim = new SemaphoreSlim(1);

public async void Dispose()
public void Dispose()
{
try
{
var ut = new UnitTest();
var client = ut.CreateClient();
await client.DeleteEngineWaitAsync(engineName);
client.DeleteEngineWaitAsync(engineName).Wait();
}
catch (System.Exception e)
catch (Exception e)
{
await Console.Error.WriteLineAsync(e.ToString());
Console.Error.WriteLine(e.ToString());
}
}

Expand Down

0 comments on commit 862e413

Please sign in to comment.