Skip to content

Commit

Permalink
Fix DSN string generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Oct 23, 2024
1 parent 2fa9544 commit 7d51a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/logic/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ func GetDSN(ctx context.Context, container testcontainers.Container) (string, er
return "", err
}

return fmt.Sprintf("root:root-password@tcp(%s:%s)/", host, port), nil
return fmt.Sprintf("root:root-password@tcp(%s:%s)/", host, port.Port()), nil
}

0 comments on commit 7d51a86

Please sign in to comment.