Skip to content

Commit d07dd75

Browse files
committed
Update pipeline to run tests
1 parent c011303 commit d07dd75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
1515
- name: Build
1616
run: dotnet build --configuration Release /p:Version=${VERSION}
17-
#- name: Test
18-
# run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
17+
- name: Test
18+
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
1919
- name: Pack
2020
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
2121
- name: Push

test/IntelliTect.AspNetCore.SignalR.SqlServer.Tests/SqlServerEndToEndTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class SqlServerEndToEndTests
1616
{
1717
private const string databaseName = "SignalRUnitTestsDb";
1818
private const string connectionString =
19-
"Server=localhost;Database=" + databaseName + ";Trusted_Connection=True;";
19+
"Server=lsocalhost;Database=" + databaseName + ";Trusted_Connection=True;";
2020

2121
[SkippableFact]
2222
public async Task CanSendAndReceivePayloads_WithServiceBroker()
@@ -93,7 +93,7 @@ private static async Task CreateDatabaseAsync()
9393
BEGIN CREATE DATABASE {databaseName}; END";
9494
await command.ExecuteNonQueryAsync();
9595
}
96-
catch (SqlException ex) when (ex.Number == 53)
96+
catch (SqlException ex) when (ex.Number == 53 || ex.Message.Contains("Could not open a connection to SQL Server"))
9797
{
9898
Skip.If(true, "SQL Server not available on localhost");
9999
}

0 commit comments

Comments
 (0)