gentoo/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch
Thomas Deutschmann 966c57cc09
app-metrics/mysqld_exporter: skip impossible tests
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
2020-07-07 02:30:46 +02:00

23 lines
545 B
Diff

--- a/collector/exporter_test.go
+++ b/collector/exporter_test.go
@@ -71,6 +71,8 @@ func TestExporter(t *testing.T) {
}
func TestGetMySQLVersion(t *testing.T) {
+ t.Skip("Test requires running mysqld")
+
if testing.Short() {
t.Skip("-short is passed, skipping test")
}
--- a/mysqld_exporter_test.go
+++ b/mysqld_exporter_test.go
@@ -142,6 +142,8 @@ type bin struct {
// TestBin builds, runs and tests binary.
func TestBin(t *testing.T) {
+ t.Skip("Test requires network access")
+
var err error
binName := "mysqld_exporter"