소스 검색

Fix linting issues

Signed-off-by: Laura Brehm <[email protected]>
Laura Brehm 3 년 전
부모
커밋
cfdec21a7f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      pkg/compose/create_test.go

+ 4 - 2
pkg/compose/create_test.go

@@ -110,7 +110,8 @@ func TestPrepareVolumes(t *testing.T) {
 				},
 			},
 		}
-		prepareVolumes(&project)
+		err := prepareVolumes(&project)
+		assert.NilError(t, err)
 		assert.Equal(t, project.Services[0].DependsOn["anotherService"].Condition, composetypes.ServiceConditionStarted)
 	})
 	t.Run("doesn't overwrite existing dependency condition", func(t *testing.T) {
@@ -129,7 +130,8 @@ func TestPrepareVolumes(t *testing.T) {
 				},
 			},
 		}
-		prepareVolumes(&project)
+		err := prepareVolumes(&project)
+		assert.NilError(t, err)
 		assert.Equal(t, project.Services[0].DependsOn["anotherService"].Condition, composetypes.ServiceConditionHealthy)
 	})
 }