From 9be445c9580d8f8c0bd293800350d445837d8814 Mon Sep 17 00:00:00 2001 From: Konstantin Kulikov Date: Mon, 2 Nov 2020 18:17:54 +0300 Subject: [PATCH] fix plugins/input/ras test (#8350) On some systems /tmp/test.db happens to exist which makes this test fail. --- plugins/inputs/ras/ras_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/ras/ras_test.go b/plugins/inputs/ras/ras_test.go index b8b70d55d66d7..a90258bb4423b 100644 --- a/plugins/inputs/ras/ras_test.go +++ b/plugins/inputs/ras/ras_test.go @@ -114,7 +114,7 @@ func TestMultipleSockets(t *testing.T) { func TestMissingDatabase(t *testing.T) { var acc testutil.Accumulator ras := newRas() - ras.DBPath = "/tmp/test.db" + ras.DBPath = "/nonexistent/ras.db" err := ras.Start(&acc) assert.Error(t, err) }