File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/IntelliTect.AspNetCore.SignalR.SqlServer.Tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments