From 1612cf6f9634b5d53d5ecf7874882c32e58e30fd Mon Sep 17 00:00:00 2001 From: Farreeda Date: Sat, 1 Jul 2023 21:01:24 +0300 Subject: [PATCH] Update for github secrets in julia script --- test/runtests.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0b0a748..c2df714 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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) @@ -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 \ No newline at end of file