mirror of https://github.com/go-redis/redis.git
fix
This commit is contained in:
parent
d9bdf478a0
commit
b8a83ab097
|
@ -15,16 +15,16 @@ import (
|
||||||
|
|
||||||
// This test is for manual use and is not part of the CI of Go-Redis.
|
// This test is for manual use and is not part of the CI of Go-Redis.
|
||||||
var _ = Describe("Monitor command", Label("monitor"), func() {
|
var _ = Describe("Monitor command", Label("monitor"), func() {
|
||||||
if os.Getenv("RUN_MONITOR_TEST") != "true" {
|
|
||||||
Skip("Skipping Monitor command test. Set RUN_MONITOR_TEST=true to run it.")
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx := context.TODO()
|
ctx := context.TODO()
|
||||||
var client *redis.Client
|
var client *redis.Client
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
if os.Getenv("RUN_MONITOR_TEST") != "true" {
|
||||||
|
Skip("Skipping Monitor command test. Set RUN_MONITOR_TEST=true to run it.")
|
||||||
|
}
|
||||||
client = redis.NewClient(&redis.Options{Addr: ":6379"})
|
client = redis.NewClient(&redis.Options{Addr: ":6379"})
|
||||||
Expect(client.FlushDB(ctx).Err()).NotTo(HaveOccurred())
|
Expect(client.FlushDB(ctx).Err()).NotTo(HaveOccurred())
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
|
Loading…
Reference in New Issue