Skip to content

Commit

Permalink
Update for github secrets in julia script
Browse files Browse the repository at this point in the history
  • Loading branch information
Farreeda committed Jul 1, 2023
1 parent d5a65ac commit 1612cf6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end

@testset "_dbconnect function for MySQL" begin

conn = _dbconnect(MySQL.Connection, mysqlhost, mysqluser,mysqlpassword, db="MySQL", port=mysqlport)
conn = _dbconnect(MySQL.Connection, ENV[mysqlhost], ENV[mysqluser], ENV[mysqlpassword], db="MySQL", port=ENV[mysqlport])

@test typeof(conn) == MySQL.Connection
@test isopen(conn)
Expand All @@ -23,8 +23,7 @@ end

@testset "_dbconnect function for LibPQ" begin

#conn = LibPQ.Connection("postgresql://postgres:postgres3@localhost:5432/mimic?user=postgres")
conn= _dbconnect(LibPQ.Connection, postgreshost, postgresuser, postgrespassword, db = "mimic", port=postgresport)
conn= _dbconnect(LibPQ.Connection, ENV[postgreshost], ENV[postgresuser], ENV[postgrespassword], db = "mimic", port=ENV[postgresport])
@test @isdefined conn

end

0 comments on commit 1612cf6

Please sign in to comment.