diff options
author | Valery Piashchynski <[email protected]> | 2023-01-06 13:49:04 +0100 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2023-01-06 13:49:04 +0100 |
commit | 3bb4d3a497b609557e884ec29a94c204dfac86a2 (patch) | |
tree | 79efa8e3a9fdb626462a5236265c298f36f77e2e /container/container_test.go | |
parent | f6bc8835dc4d996992b6d4a2751ac10dc6138e4f (diff) |
Initial support for the endure v2 container
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'container/container_test.go')
-rw-r--r-- | container/container_test.go | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/container/container_test.go b/container/container_test.go index ed080d38..a1d68e6b 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -4,22 +4,16 @@ import ( "testing" "time" - endure "github.com/roadrunner-server/endure/pkg/container" - "github.com/roadrunner-server/roadrunner/v2/container" + "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, err := container.NewContainer(container.Config{}) - c2, err2 := container.NewContainer(container.Config{ - GracePeriod: time.Second, - PrintGraph: true, - LogLevel: endure.WarnLevel, - }) + c := endure.New(slog.LevelDebug, endure.Visualize(), endure.GracefulShutdownTimeout(time.Second)) + c2 := endure.New(slog.LevelDebug, endure.Visualize(), endure.GracefulShutdownTimeout(time.Second)) - assert.NoError(t, err) assert.NotNil(t, c) - assert.NoError(t, err2) assert.NotNil(t, c2) } |