From 3220d2aeec9584a7f72bfdd36a45ee624c125bae Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 29 May 2020 12:47:57 -0400 Subject: [PATCH] Fix Postgres Update test again --- tests/Tgstation.Server.Tests/IntegrationTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Tgstation.Server.Tests/IntegrationTest.cs b/tests/Tgstation.Server.Tests/IntegrationTest.cs index bc00450368..eeb4562a50 100644 --- a/tests/Tgstation.Server.Tests/IntegrationTest.cs +++ b/tests/Tgstation.Server.Tests/IntegrationTest.cs @@ -91,9 +91,10 @@ namespace Tgstation.Server.Tests await serverTask.ConfigureAwait(false); } catch (OperationCanceledException) { } - catch (NotSupportedException ex) + catch (AggregateException ex) { - Assert.Inconclusive(ex.Message); + if (ex.InnerException is NotSupportedException notSupportedException) + Assert.Inconclusive(notSupportedException.Message); } } Assert.IsTrue(server.RestartRequested, "Server not requesting restart!");