Skip to content

Commit 8c01776

Browse files
committed
1 parent 1dae111 commit 8c01776

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/IntegrationTests/SslTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ private async Task DoTestSsl(string connectionString)
103103
Assert.True(connection.SslIsEncrypted);
104104
Assert.True(connection.SslIsSigned);
105105
Assert.True(connection.SslIsAuthenticated);
106+
#if !NET9_0_OR_GREATER
106107
Assert.True(connection.SslIsMutuallyAuthenticated);
108+
#endif
107109
#endif
108110
cmd.CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'";
109111
var sslVersion = (string) await cmd.ExecuteScalarAsync();
@@ -133,9 +135,11 @@ public async Task ConnectSslClientCertificateFromCertificateStore(string certFil
133135
Assert.True(connection.SslIsEncrypted);
134136
Assert.True(connection.SslIsSigned);
135137
Assert.True(connection.SslIsAuthenticated);
138+
#if !NET9_0_OR_GREATER
136139
Assert.True(connection.SslIsMutuallyAuthenticated);
137140
#endif
138-
cmd.CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'";
141+
#endif
142+
cmd.CommandText = "SHOW SESSION STATUS LIKE 'Ssl_version'";
139143
var sslVersion = (string) await cmd.ExecuteScalarAsync();
140144
Assert.False(string.IsNullOrWhiteSpace(sslVersion));
141145
}

0 commit comments

Comments
 (0)