package redis import ( "testing" "github.com/alicebob/miniredis/v2" "github.com/stretchr/testify/assert" ) func TestBlockingNode(t *testing.T) { r, err := miniredis.Run() assert.Nil(t, err) node, err := CreateBlockingNode(New(r.Addr())) assert.Nil(t, err) node.Close() node, err = CreateBlockingNode(New(r.Addr(), Cluster())) assert.Nil(t, err) node.Close() }