Skip to content

Commit

Permalink
tls: close session in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kulezi committed Aug 2, 2022
1 parent acbd830 commit 5f81396
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ func makeCertificatesFromFiles(t *testing.T, certPath, keyPath string) []tls.Cer
}

func TestTLSIntegration(t *testing.T) {
defer goleak.VerifyNone(t)

testCases := []struct {
name string
tlsConfig *tls.Config
Expand Down Expand Up @@ -308,6 +310,7 @@ func TestTLSIntegration(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer session.Close()

stmts := []string{
"CREATE KEYSPACE IF NOT EXISTS mykeyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}",
Expand Down

0 comments on commit 5f81396

Please sign in to comment.