From 348a6b180547c0835e639e8a1054aedef77d6be9 Mon Sep 17 00:00:00 2001 From: Bowen Date: Sat, 1 Jul 2023 09:47:28 +0800 Subject: [PATCH] Add short flag --- redis_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redis_test.go b/redis_test.go index 39adadf..da90760 100644 --- a/redis_test.go +++ b/redis_test.go @@ -23,6 +23,10 @@ type RedisTestSuite struct { } func TestRedisTestSuite(t *testing.T) { + if testing.Short() { + t.Skip("Skipping tests of using docker") + } + redisPool, redisDocker, redisStore, err := getRedisDocker() if err != nil { log.Fatalf("Get redis store error: %s", err)