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)
@ -103,6 +104,7 @@ func TestBackend(t *testing.T) {
})) }))
}) })
} }
}
func TestChangeSignal(t *testing.T) { func TestChangeSignal(t *testing.T) {
if os.Getenv("GITHUB_ACTION") != "" && runtime.GOOS == "darwin" { if os.Getenv("GITHUB_ACTION") != "" && runtime.GOOS == "darwin" {