File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ var _ = Describe("Config", func() {
25
25
26
26
It ("should succeed with additional devices" , func () {
27
27
// Given
28
+ validDirPath , err := ioutil .TempDir ("" , "config-empty" )
29
+ if err != nil {
30
+ panic (err )
31
+ }
32
+ defer os .RemoveAll (validDirPath )
33
+
34
+ sut .HooksDir = []string {validDirPath }
35
+
28
36
sut .AdditionalDevices = []string {"/dev/null:/dev/null:rw" }
29
37
30
38
// When
31
- err : = sut .ContainersConfig .Validate (nil , true )
39
+ err = sut .ContainersConfig .Validate (nil , true )
32
40
33
41
// Then
34
42
Expect (err ).To (BeNil ())
@@ -364,16 +372,6 @@ var _ = Describe("Config", func() {
364
372
})
365
373
366
374
Describe ("New" , func () {
367
- It ("should return default configuration if pass nil path" , func () {
368
- // Given
369
- // When
370
- config , err := config .New ("" )
371
- // Then
372
- Expect (err ).To (BeNil ())
373
- Expect (config .CgroupManager ).To (Equal ("systemd" ))
374
- Expect (config .PidsLimit ).To (BeEquivalentTo (1024 ))
375
- })
376
-
377
375
It ("should success with valid user file path" , func () {
378
376
// Given
379
377
// When
You can’t perform that action at this time.
0 commit comments