Use well tested logging sub-library.

This commit is contained in:
2023-10-20 10:15:26 +01:00
parent 3c96bdd3c2
commit ca3d1b6da0
6 changed files with 49 additions and 67 deletions
+4
View File
@@ -2,9 +2,12 @@ package cmd
import (
"testing"
libpack_logging "github.com/lukaszraczylo/graphql-monitoring-proxy/logging"
)
func Test_checkLatestRelease(t *testing.T) {
logger = libpack_logging.NewLogger()
tests := []struct {
name string
want string
@@ -26,6 +29,7 @@ func Test_checkLatestRelease(t *testing.T) {
}
func Test_updatePackage(t *testing.T) {
logger = libpack_logging.NewLogger()
if testing.Short() {
t.Skip("Skipping test in short / CI mode")
}