blob: a1d68e6bf0931f89b07f533bce7a61c117e84249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package container_test
import (
"testing"
"time"
"github.com/roadrunner-server/endure/v2"
"github.com/stretchr/testify/assert"
"golang.org/x/exp/slog"
)
func TestNewContainer(t *testing.T) { // there is no legal way to test container options
c := endure.New(slog.LevelDebug, endure.Visualize(), endure.GracefulShutdownTimeout(time.Second))
c2 := endure.New(slog.LevelDebug, endure.Visualize(), endure.GracefulShutdownTimeout(time.Second))
assert.NotNil(t, c)
assert.NotNil(t, c2)
}
|