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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user