Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Nov 16, 2020
1 parent eb389f2 commit 0b33e99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connection/sql_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func Test_createConnectionURL(t *testing.T) {
Port: "1443",
Timeout: "30",
},
"sqlserver://user:pass@localhost:1443?dial+timeout=30",
"sqlserver://user:pass@localhost:1443?connection+timeout=30&dial+timeout=30",
},
{
"Instance No SSL",
Expand All @@ -77,7 +77,7 @@ func Test_createConnectionURL(t *testing.T) {
Instance: "SQLExpress",
Timeout: "30",
},
"sqlserver://user:pass@localhost/SQLExpress?dial+timeout=30",
"sqlserver://user:pass@localhost/SQLExpress?connection+timeout=30&dial+timeout=30",
},
{
"Instance SSL Trust",
Expand All @@ -90,7 +90,7 @@ func Test_createConnectionURL(t *testing.T) {
Instance: "SQLExpress",
Timeout: "30",
},
"sqlserver://user:pass@localhost/SQLExpress?TrustServerCertificate=true&dial+timeout=30&encrypt=true",
"sqlserver://user:pass@localhost/SQLExpress?TrustServerCertificate=true&connection+timeout=30&dial+timeout=30&encrypt=true",
},
{
"Instance SSL Certificate",
Expand All @@ -104,7 +104,7 @@ func Test_createConnectionURL(t *testing.T) {
Instance: "SQLExpress",
Timeout: "30",
},
"sqlserver://user:pass@localhost/SQLExpress?TrustServerCertificate=false&certificate=file.ca&dial+timeout=30&encrypt=true",
"sqlserver://user:pass@localhost/SQLExpress?TrustServerCertificate=false&certificate=file.ca&connection+timeout=30&dial+timeout=30&encrypt=true",
},
}

Expand Down

0 comments on commit 0b33e99

Please sign in to comment.