mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 19:32:15 +01:00
fixing pm2 tests + adding pkg config tests
This commit is contained in:
@@ -14,8 +14,10 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/logger"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/standarderror"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
@@ -49,6 +51,12 @@ func RequireStandardError(t *testing.T, err error) *standarderror.Error {
|
||||
return standardized
|
||||
}
|
||||
|
||||
// CreateTestLogger create a default logger
|
||||
// for our tests.
|
||||
func CreateTestLogger() *logger.Logger {
|
||||
return logger.New(logrus.DebugLevel, "tests")
|
||||
}
|
||||
|
||||
// HTMLTestMultipartForm returns the body
|
||||
// for a multipate/form-data request with all
|
||||
// files under "html" folder.
|
||||
|
||||
Reference in New Issue
Block a user