blob: 9be043e298a34df4c365f29919ad7ed1f5460ffe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package container_test
import (
"testing"
"time"
"github.com/roadrunner-server/roadrunner/v2/internal/container"
endure "github.com/roadrunner-server/endure/pkg/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,
RetryOnFail: true,
LogLevel: endure.WarnLevel,
})
assert.NoError(t, err)
assert.NotNil(t, c)
assert.NoError(t, err2)
assert.NotNil(t, c2)
}
|