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,17 +91,19 @@ func TestBackend(t *testing.T) {
}))
})
t.Run("cluster", func(t *testing.T) {
require.NoError(t, testutil.WithTestRedisCluster(func(rawURL string) error {
return handler(t, false, rawURL)
}))
})
if runtime.GOOS == "linux" {
t.Run("cluster", func(t *testing.T) {
require.NoError(t, testutil.WithTestRedisCluster(func(rawURL string) error {
return handler(t, false, rawURL)
}))
})
t.Run("sentinel", func(t *testing.T) {
require.NoError(t, testutil.WithTestRedisSentinel(func(rawURL string) error {
return handler(t, false, rawURL)
}))
})
t.Run("sentinel", func(t *testing.T) {
require.NoError(t, testutil.WithTestRedisSentinel(func(rawURL string) error {
return handler(t, false, rawURL)
}))
})
}
}
func TestChangeSignal(t *testing.T) {