Skip to content

Commit

Permalink
Disable all the metrics tests.
Browse files Browse the repository at this point in the history
The FakeMySqlServer setup fails under Appveyor and Azure Pipelines.

Signed-off-by: Bradley Grainger <[email protected]>
  • Loading branch information
bgrainger committed Oct 29, 2023
1 parent de31449 commit 2f31600
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/MySqlConnector.Tests/Metrics/ConnectionTimeTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if METRICS_TESTS
namespace MySqlConnector.Tests.Metrics;

public class ConnectionTimeTests : MetricsTestsBase
Expand Down Expand Up @@ -90,3 +91,4 @@ public async Task UseTimeWithDelay()
Assert.InRange(time, 500, 600);
}
}
#endif
2 changes: 2 additions & 0 deletions tests/MySqlConnector.Tests/Metrics/ConnectionsUsageTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if METRICS_TESTS
#nullable enable

namespace MySqlConnector.Tests.Metrics;
Expand Down Expand Up @@ -243,3 +244,4 @@ public async Task PendingRequestForOpenFromPool()
AssertMeasurement("db.client.connections.pending_requests", 0);
}
}
#endif
2 changes: 2 additions & 0 deletions tests/MySqlConnector.Tests/Metrics/MinMaxConnectionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if METRICS_TESTS
#nullable enable

namespace MySqlConnector.Tests.Metrics;
Expand Down Expand Up @@ -103,3 +104,4 @@ public void SetsMaximumToCustom()
AssertMeasurement("db.client.connections.max", 0);
}
}
#endif

0 comments on commit 2f31600

Please sign in to comment.