-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary skip tests using net/redistest #2458
Conversation
862a39a
to
fd6b249
Compare
👍 |
net/redistest/redistest.go
Outdated
@@ -15,6 +15,9 @@ func NewTestRedis(t testing.TB) (address string, done func()) { | |||
} | |||
|
|||
func NewTestRedisWithPassword(t testing.TB, password string) (address string, done func()) { | |||
|
|||
t.Skip("https://github.com/testcontainers/testcontainers-go/issues/1359") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we set some deadline after which this skip won't work?
Something like this:
if time.Now() < time.Parse("2023-Sep-01", "2014-Feb-04") {
t.Skip("https://github.com/testcontainers/testcontainers-go/issues/1359")
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, fixed.
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]>
fd6b249
to
d1e1f9d
Compare
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use time.DateOnly
but its only available since go1.20
👍 |
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get the relevance of 2006 date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out this https://pkg.go.dev/time#Parse
Note: |
Merging as testcontainers fix may take a while |
👍 |
Followup on #2458 Signed-off-by: Alexander Yastrebov <[email protected]>
Followup on #2458 Signed-off-by: Alexander Yastrebov <[email protected]>
Followup on #2458 Signed-off-by: Alexander Yastrebov <[email protected]>
* update testcontainers to fix goroutine leak (see testcontainers/testcontainers-go#1441) [changes](testcontainers/testcontainers-go@v0.20.1...d1c291e) * enable redis tests back Updates #2458 Closes #2496 Signed-off-by: Alexander Yastrebov <[email protected]>
* update testcontainers to fix goroutine leak (see testcontainers/testcontainers-go#1441) [changes](testcontainers/testcontainers-go@v0.20.1...d1c291e) * enable redis tests back Updates #2458 Closes #2496 Signed-off-by: Alexander Yastrebov <[email protected]>
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