From bd1ead99fd53ad8c3c016b59d67f5bf58ade5095 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 2 Jun 2026 19:40:55 +0200 Subject: Remove success logging in tests In case the test succeeds it is not required to log anything. This only adds noise to the output. --- database_test.go | 1 - testing.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/database_test.go b/database_test.go index 901db42..a9c818b 100644 --- a/database_test.go +++ b/database_test.go @@ -46,7 +46,6 @@ func TestMigrations(t *testing.T) { for i := range migrations { path := migrationPath(i) - t.Logf("Test execution of %s", path) err := Migrate(db, i) if err != nil { diff --git a/testing.go b/testing.go index d4a8457..14da69f 100644 --- a/testing.go +++ b/testing.go @@ -18,10 +18,8 @@ func newSite(t *testing.T) string { t.Cleanup(func() { os.RemoveAll(site) - t.Logf("Removed test site '%s'.", site) }) - t.Logf("Created test site '%s'.", site) return site } @@ -37,10 +35,8 @@ func emptyDB(t *testing.T) (*sql.DB, string) { t.Cleanup(func() { db.Close() - t.Logf("Removed test database '%s'.", path) }) - t.Logf("Created test database '%s'.", path) return db, path } -- cgit v1.3.1