Add test for runtime parameter storage
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user