1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-28 23:20:10 +02:00

сделал Connect_WithApplicationName_err()

This commit is contained in:
Nikitin Aleksandr
2023-11-23 15:34:13 +03:00
parent f4caf3891b
commit 53f82c9f35
2 changed files with 43 additions and 6 deletions

View File

@@ -15,9 +15,6 @@ import (
)
func TestConnect_err(t *testing.T) {
//Connect_Panic()
//ProgramDir := micro.ProgramDir_Common()
config.LoadEnv()
err := Connect_err()
if err != nil {
@@ -106,3 +103,19 @@ func TestGetConnection(t *testing.T) {
CloseConnection()
}
func TestConnect_WithApplicationName_err(t *testing.T) {
config.LoadEnv()
err := Connect_WithApplicationName_err("starter test")
if err != nil {
t.Error("TestConnect_WithApplicationName_err error: ", err)
}
//micro.Pause(60 * 1000)
err = CloseConnection_err()
if err != nil {
t.Error("TestConnect_WithApplicationName_err() error: ", err)
}
}