skip redis cluster on non-linux systems (#2045)

This commit is contained in:
wasaga 2021-03-31 10:42:49 -04:00 committed by GitHub
parent 9980206073
commit 8f97b0d6ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,7 @@ func TestBackend(t *testing.T) {
})) }))
}) })
if runtime.GOOS == "linux" {
t.Run("cluster", func(t *testing.T) { t.Run("cluster", func(t *testing.T) {
require.NoError(t, testutil.WithTestRedisCluster(func(rawURL string) error { require.NoError(t, testutil.WithTestRedisCluster(func(rawURL string) error {
return handler(t, false, rawURL) return handler(t, false, rawURL)
@ -102,6 +103,7 @@ func TestBackend(t *testing.T) {
return handler(t, false, rawURL) return handler(t, false, rawURL)
})) }))
}) })
}
} }
func TestChangeSignal(t *testing.T) { func TestChangeSignal(t *testing.T) {