mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 20:02:15 +01:00
rolling back from previous implementation, now using master version of unoconv
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/conf"
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/pm2"
|
||||
"github.com/thecodingmachine/gotenberg/test"
|
||||
)
|
||||
|
||||
@@ -27,27 +26,6 @@ func TestMustCastFromEchoContext(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestProcessesHealthcheck(t *testing.T) {
|
||||
// process is viable.
|
||||
ctx := New(
|
||||
test.DummyEchoContext(),
|
||||
test.DebugLogger(),
|
||||
conf.DefaultConfig(),
|
||||
pm2.NewDummyProcess(true),
|
||||
)
|
||||
err := ctx.ProcessesHealthcheck()
|
||||
assert.Nil(t, err)
|
||||
// process is not viable.
|
||||
ctx = New(
|
||||
test.DummyEchoContext(),
|
||||
test.DebugLogger(),
|
||||
conf.DefaultConfig(),
|
||||
pm2.NewDummyProcess(false),
|
||||
)
|
||||
err = ctx.ProcessesHealthcheck()
|
||||
test.AssertError(t, err)
|
||||
}
|
||||
|
||||
func TestLogRequestResult(t *testing.T) {
|
||||
ctx := New(
|
||||
test.DummyEchoContext(),
|
||||
|
||||
Reference in New Issue
Block a user