diff options
author | Valery Piashchynski <[email protected]> | 2022-07-15 17:16:57 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-15 17:16:57 +0200 |
commit | ee688b78be4c756d26470f36c0fbf32f99a325a2 (patch) | |
tree | 552930e2790ad15d1f890f9abfac217a01c0be06 /container/container_test.go | |
parent | bb4a2bf33fc53728f438550fad6118c3bf4ff95c (diff) | |
parent | 867b8d1e443b7cb32d8276518fe9e49918a5fda2 (diff) |
[#1214]: feat: make RR embeddable in other programs
Diffstat (limited to 'container/container_test.go')
-rw-r--r-- | container/container_test.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/container/container_test.go b/container/container_test.go new file mode 100644 index 00000000..ed080d38 --- /dev/null +++ b/container/container_test.go @@ -0,0 +1,25 @@ +package container_test + +import ( + "testing" + "time" + + endure "github.com/roadrunner-server/endure/pkg/container" + "github.com/roadrunner-server/roadrunner/v2/container" + "github.com/stretchr/testify/assert" +) + +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, + }) + + assert.NoError(t, err) + assert.NotNil(t, c) + + assert.NoError(t, err2) + assert.NotNil(t, c2) +} |