Skip to content

Commit

Permalink
Test case fixed.
Browse files Browse the repository at this point in the history
Github action database changed to MSSQL 2022 latest
  • Loading branch information
MathavanN committed Apr 25, 2024
1 parent 0720ebf commit db5d8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- name: Start MSSQL in docker
run: |
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=MyStr@ngPassw0rd" -e "MSSQL_PID=Developer" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-CU10-ubuntu-16.04
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=MyStr@ngPassw0rd" -e "MSSQL_PID=Developer" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
- name: Wait for SqlServer Container
uses: jakejarvis/wait-action@master
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task Initialize_MyRestaurantDatabase_Throws_Exception()
var exception = await Assert.ThrowsAsync<SqlException>(() => databaseInitializer.Initialize());

//Assert
exception.InnerException.Message.Should().Contain("A network-related or instance-specific error occurred while establishing a connection to SQL Server.");
exception.Message.Should().Contain("A network-related or instance-specific error occurred while establishing a connection to SQL Server.");
}
}
}

0 comments on commit db5d8b6

Please sign in to comment.