Skip to content

Commit

Permalink
Remove unit-test relying on a locally installed redis
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored and powersj committed Oct 12, 2023
1 parent 1237c15 commit 21ee760
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions plugins/outputs/redistimeseries/redistimeseries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,6 @@ import (
"github.com/influxdata/telegraf/testutil"
)

func TestConnectAndWrite(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
}

address := testutil.GetLocalHost() + ":6379"
redis := &RedisTimeSeries{
Address: address,
ConvertStringFields: true,
Timeout: config.Duration(10 * time.Second),
}

// Verify that we can connect to the RedisTimeSeries server
err := redis.Connect()
require.NoError(t, err)

// Verify that we can successfully write data to the RedisTimeSeries server
err = redis.Write(testutil.MockMetrics())
require.NoError(t, err)
}

func TestConnectAndWriteIntegration(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
Expand Down

0 comments on commit 21ee760

Please sign in to comment.