Skip to content

Commit

Permalink
remove gologger from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Nov 23, 2024
1 parent 8aa3d7d commit 44a2a09
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot
go 1.23

require (
github.com/CubicrootXYZ/gologger v0.4.0
github.com/CubicrootXYZ/gonaturalduration v0.5.0
github.com/CubicrootXYZ/gormlogger v0.0.0-20211030135540-f090b6c3590d
github.com/arran4/golang-ical v0.3.1
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/CubicrootXYZ/gologger v0.4.0 h1:P/QC3+KYG/9OLL7mv2lO5G6vo+gOCQQddHq3mib0qK8=
github.com/CubicrootXYZ/gologger v0.4.0/go.mod h1:ToO0WG8e9pFFg5JbwmT99PEJYrl0W6XlwMJ8Pzyf7Yc=
github.com/CubicrootXYZ/gonaturalduration v0.5.0 h1:6qVQ8DuZKiyt1WhIyGmW7adbaYJ2CkH/iSHeGH/WhXI=
github.com/CubicrootXYZ/gonaturalduration v0.5.0/go.mod h1:pNCNvLsNlxgUR3y9DNPVSmdF1D9BZTfaM2yZwbEjCRA=
github.com/CubicrootXYZ/gormlogger v0.0.0-20211030135540-f090b6c3590d h1:aeRXn89hSJJF9Ut/5FmkVwbgKW6VgnvaNseoB+uC+Ro=
Expand Down
7 changes: 0 additions & 7 deletions internal/connectors/ical/database/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import (
"os"
"testing"

"github.com/CubicrootXYZ/gologger"
"github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot/internal/connectors/ical/database"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)

var logger gologger.Logger
var service database.Service
var gormDB *gorm.DB

Expand Down Expand Up @@ -41,12 +39,7 @@ func getService(gormDB *gorm.DB) database.Service {
return service
}

func getLogger() gologger.Logger {
return gologger.New(gologger.LogLevelDebug, 0)
}

func TestMain(m *testing.M) {
logger = getLogger()
gormDB = getGormDB()
service = getService(gormDB)

Expand Down
7 changes: 0 additions & 7 deletions internal/connectors/matrix/database/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import (
"os"
"testing"

"github.com/CubicrootXYZ/gologger"
"github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot/internal/connectors/matrix/database"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)

var logger gologger.Logger
var service database.Service
var gormDB *gorm.DB

Expand Down Expand Up @@ -41,12 +39,7 @@ func getService(gormDB *gorm.DB) database.Service {
return service
}

func getLogger() gologger.Logger {
return gologger.New(gologger.LogLevelDebug, 0)
}

func TestMain(m *testing.M) {
logger = getLogger()
gormDB = getGormDB()
service = getService(gormDB)

Expand Down

0 comments on commit 44a2a09

Please sign in to comment.