Fix: Prints should always include new lines (#102795)
* CI: Allow Bench conversion to fail We shouldn't mark PRs and commits as X if they fail to convert logs with Bench. * Fix: Prints should always include new lines * fix: remove unused import
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -56,7 +55,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ func TestMigrations(t *testing.T) {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -92,7 +92,7 @@ func TestIntegrationMigrationLock(t *testing.T) {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -203,7 +203,7 @@ func TestMigratorLocking(t *testing.T) {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -250,7 +250,7 @@ func TestDatabaseLocking(t *testing.T) {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -28,7 +27,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -34,7 +33,7 @@ func setupTestDB(t *testing.T) *xorm.Engine {
|
||||
|
||||
t.Cleanup(func() {
|
||||
if err := x.Close(); err != nil {
|
||||
fmt.Printf("failed to close xorm engine: %v", err)
|
||||
t.Logf("failed to close xorm engine: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user