summaryrefslogtreecommitdiff
path: root/container/container_test.go
blob: 49780a31256a2d976bfcf57e182cb00101895679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package container_test

import (
	"log/slog"
	"testing"
	"time"

	"github.com/roadrunner-server/endure/v2"
	"github.com/stretchr/testify/assert"
)

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)
}