Skip to content

Commit e37610e

Browse files
committed
Set TrustServerCertificate for SQL Server tests' connection string
1 parent 982a1d5 commit e37610e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ image:
1919

2020
# environment variables
2121
environment:
22-
Hangfire_SqlServer_ConnectionStringTemplate: Server=.\SQL2017;Database={0};User Id=sa;Password=Password12!;Encrypt=False
22+
Hangfire_SqlServer_ConnectionStringTemplate: Server=.\SQL2017;Database={0};User Id=sa;Password=Password12!;TrustServerCertificate=True
2323
SIGNPATH_API_TOKEN:
2424
secure: nvG+jv/K3utFvpHGx/N6Glpv0Wdj0wfBSl8c/tkHbn2AIwGcNe2e4VSOkod7xVpC
2525
COVERITY_TOKEN:

tests/Hangfire.SqlServer.Tests/Utils/ConnectionUtils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private const string ConnectionStringTemplateVariable
1313
private const string MasterDatabaseName = "master";
1414
private const string DefaultDatabaseName = @"Hangfire.SqlServer.Tests";
1515
private const string DefaultConnectionStringTemplate
16-
= @"Server=.\;Database={0};Trusted_Connection=True;";
16+
= @"Server=.\;Database={0};Trusted_Connection=True;TrustServerCertificate=True;";
1717

1818
public static string GetDatabaseName()
1919
{

0 commit comments

Comments
 (0)