mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
15 lines
253 B
Go
15 lines
253 B
Go
package timeout
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestDuration(t *testing.T) {
|
|
expected := time.Duration(1500) * time.Millisecond
|
|
result := Duration(1.5)
|
|
assert.Equal(t, expected.String(), result.String())
|
|
}
|