mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-12 18:32:14 +01:00
minor refactoring of const + better timeout handling in pinter package + api package tests
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
func Cleanup() echo.MiddlewareFunc {
|
||||
return func(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
const op = "middleware.Cleanup"
|
||||
const op string = "middleware.Cleanup"
|
||||
err := next(c)
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
r := ctx.Resource()
|
||||
|
||||
@@ -15,13 +15,13 @@ import (
|
||||
const (
|
||||
// TestingTraceEnvVar is an environment
|
||||
// variable used in some tests.
|
||||
TestingTraceEnvVar = "TESTING_TRACE"
|
||||
TestingTraceEnvVar string = "TESTING_TRACE"
|
||||
// TestsTracePrefix helps
|
||||
// creating all resources inside a prefix.
|
||||
// Only used in some tests
|
||||
// to check if the resources
|
||||
// have been removed.
|
||||
TestsTracePrefix = "tmp"
|
||||
TestsTracePrefix string = "tmp"
|
||||
)
|
||||
|
||||
// Context helps extending the default echo.Context with
|
||||
|
||||
Reference in New Issue
Block a user