Skip to content

Commit

Permalink
fix panic in it
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Sep 6, 2023
1 parent ebc3092 commit 1dfb106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/cmd/integration-test/javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
type javascriptRedisPassBrute struct{}

func (j *javascriptRedisPassBrute) Execute(filePath string) error {
if redisResource == nil {
if redisResource == nil || pool == nil {
// skip test as redis is not running
return nil
}
Expand Down Expand Up @@ -56,7 +56,7 @@ func (j *javascriptRedisPassBrute) Execute(filePath string) error {
type javascriptSSHServerFingerprint struct{}

func (j *javascriptSSHServerFingerprint) Execute(filePath string) error {
if sshResource == nil {
if sshResource == nil || pool == nil {
// skip test as redis is not running
return nil
}
Expand Down

0 comments on commit 1dfb106

Please sign in to comment.