16 lines
221 B
Go
16 lines
221 B
Go
package server
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
// Testing connection to the Database
|
|
func TestConnect(t *testing.T) {
|
|
// Connect to database created
|
|
_, err := Connect()
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
t.Fail()
|
|
}
|
|
} |