Skip to content

Commit 81fde4f

Browse files
committed
Fixing UTs
1 parent a245e65 commit 81fde4f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

MySQL.Data/tests/ConnectionTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ public void ConnectAttributes()
575575
[Trait("Category", "Security")]
576576
public void PasswordExpiration()
577577
{
578-
if (Fixture.Version < new Version(5, 6, 6)) return;
578+
if ((Fixture.Version < new Version(5, 6, 6)) || (Fixture.Version >= new Version(8, 0, 17))) return;
579579

580580
const string expireduser = "expireduser";
581581
const string expiredhost = "localhost";
@@ -705,6 +705,8 @@ public void CanConnectUsingFileBasedCertificate()
705705
[Fact]
706706
public void IPv6Connection()
707707
{
708+
if (Fixture.Version < new Version(5, 6, 6)) return;
709+
708710
MySqlConnectionStringBuilder sb = new MySqlConnectionStringBuilder(Connection.ConnectionString);
709711
sb.Server = "::1";
710712
using(MySqlConnection conn = new MySqlConnection(sb.ToString()))

MySQL.Data/tests/DateTimeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2013, 2018, Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2013, 2019, Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -254,7 +254,7 @@ public void MySqlDateTimeFormatting()
254254
{
255255
DateTime dt = DateTime.Now;
256256
MySqlDateTime mdt = new MySqlDateTime(dt);
257-
Assert.Equal(dt.ToString(), mdt.ToString());
257+
Assert.Equal(dt.ToString(CultureInfo.InvariantCulture), mdt.ToString());
258258
}
259259

260260
/// <summary>

0 commit comments

Comments
 (0)