diff options
author | Valery Piashchynski <[email protected]> | 2022-07-15 15:43:01 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-07-15 15:43:01 +0200 |
commit | 3dfd34d5d4b9f47dae203dd27af9fdba2de67960 (patch) | |
tree | 88539938a4a61faf0221379ac34754042adabadb /container/container_test.go | |
parent | 5d598819f74a860b4f265fb6fde033da008d706e (diff) |
- move container from the internal folder
- channel with the proper size
Signed-off-by: Valery Piashchynski <[email protected]>
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) +} |