fixing pm2 tests + adding pkg config tests

This commit is contained in:
Julien Neuhart
2019-07-08 18:26:17 +02:00
parent acd47b870f
commit 1b4eed1a6e
4 changed files with 122 additions and 4 deletions

View File

@@ -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.