fixing tests

This commit is contained in:
Julien Neuhart
2019-09-30 16:38:52 +02:00
parent d45f2e1ec7
commit 8f721cd12a
5 changed files with 28 additions and 19 deletions

23
test/cmd/chrome.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"context"
"github.com/thecodingmachine/gotenberg/internal/pkg/chrome"
"github.com/thecodingmachine/gotenberg/internal/pkg/conf"
"github.com/thecodingmachine/gotenberg/internal/pkg/xlog"
)
func main() {
const op string = "main"
config, err := conf.FromEnv()
systemLogger := xlog.New(config.LogLevel(), "system")
if err != nil {
systemLogger.FatalOp(op, err)
}
// start Google Chrome.
_, err = chrome.Start(context.Background(), systemLogger)
if err != nil {
systemLogger.FatalOp(op, err)
}
}