aboutsummaryrefslogtreecommitdiffstats
path: root/library/recipes/docker_compose/example_network_go/go_test.go
blob: 76d37ede7642de91965aa140383c7b14e6fb71e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package example

import (
	"context"
	"testing"

	"github.com/go-redis/redis/v8"
	"github.com/stretchr/testify/require"
)

func TestFoo(t *testing.T) {
	c := redis.NewUniversalClient(
		&redis.UniversalOptions{
			Addrs: []string{"redis:6379"},
		},
	)

	sc := c.Ping(context.Background())
	require.NoError(t, sc.Err())
	t.Log(sc)
}