Skip to content

Commit

Permalink
Temporary skip tests using net/redistest (#2458)
Browse files Browse the repository at this point in the history
Redis testcontainer fails to start due to testcontainers/testcontainers-go#1359
caused by golang/go#61076 and
we can not pin cdp-runtime/go to a working patch version before 1.20.6

Signed-off-by: Alexander Yastrebov <[email protected]>
  • Loading branch information
AlexanderYastrebov authored Jul 15, 2023
1 parent 8704ae6 commit 7f36fca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/redistest/redistest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ func NewTestRedis(t testing.TB) (address string, done func()) {
}

func NewTestRedisWithPassword(t testing.TB, password string) (address string, done func()) {

if fixDeadline, _ := time.Parse("2006-01-02", "2023-08-01"); time.Now().Before(fixDeadline) {
t.Skip("https://github.com/testcontainers/testcontainers-go/issues/1359")
}

var args []string
if password != "" {
args = append(args, "--requirepass", password)
Expand Down

0 comments on commit 7f36fca

Please sign in to comment.