From a81aaca8feb525b407e67ec6addd81204ef238a7 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Fri, 20 Feb 2026 12:02:34 +0000 Subject: [PATCH] Updated tests for recent server changes (#445) --- .../Api/GraphQL/Resources/ProjectResourceExceptionalTests.cs | 2 +- .../Api/GraphQL/Resources/SubscriptionResourceTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceExceptionalTests.cs b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceExceptionalTests.cs index 94034402..ab14c650 100644 --- a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceExceptionalTests.cs +++ b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceExceptionalTests.cs @@ -106,7 +106,7 @@ public class ProjectResourceExceptionalTests : IAsyncLifetime ProjectUpdateRoleInput input = new(_secondUser.Account.id.NotNull(), "NonExistentProject", newRole); var ex = await Assert.ThrowsAsync(async () => _ = await Sut.UpdateRole(input)); - ex.InnerExceptions.Single().Should().BeOfType(); + ex.InnerExceptions.Single().Should().BeAssignableTo(); //v3 server responds with SpeckleGraphQLStreamNotFoundException exception, v2 reponds with SpeckleGraphQLForbiddenException } [Theory] diff --git a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/SubscriptionResourceTests.cs b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/SubscriptionResourceTests.cs index 3ef89104..dff86650 100644 --- a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/SubscriptionResourceTests.cs +++ b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/SubscriptionResourceTests.cs @@ -15,7 +15,7 @@ public class SubscriptionResourceTests : IAsyncLifetime #else private const int WAIT_PERIOD = 400; // For CI runs, a much smaller wait time is acceptable #endif - private const int TIMEOUT = WAIT_PERIOD + 1000; + private const int TIMEOUT = WAIT_PERIOD + WAIT_PERIOD + 600; private IClient _testUser; private Project _testProject; private Model _testModel;