mirror of https://github.com/jackc/pgx.git
Add test for runtime parameter storage
parent
34e47ed59e
commit
b04166bcf5
|
@ -10,6 +10,10 @@ func TestConnect(t *testing.T) {
|
||||||
t.Fatal("Unable to establish connection")
|
t.Fatal("Unable to establish connection")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _, present := conn.runtimeParams["server_version"]; !present {
|
||||||
|
t.Error("Runtime parameters not stored")
|
||||||
|
}
|
||||||
|
|
||||||
err = conn.Close()
|
err = conn.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Unable to close connection")
|
t.Fatal("Unable to close connection")
|
||||||
|
|
Loading…
Reference in New Issue