Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 2d37def

Browse files
author
Anthony Emengo
committed
Make pkg/servicew tests work cross-platform
1 parent 08b8e05 commit 2d37def

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
label: org.cfdev.servicew.simple
3+
executable: sleep
4+
args:
5+
- "12345"

pkg/servicew/integration/integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package integration_test
33
import (
44
"code.cloudfoundry.org/cfdev/pkg/servicew/client"
55
"code.cloudfoundry.org/cfdev/pkg/servicew/config"
6+
"fmt"
67
. "github.com/onsi/ginkgo"
78
. "github.com/onsi/gomega"
89
"gopkg.in/yaml.v2"
@@ -38,7 +39,7 @@ var _ = Describe("ServiceWrapper Lifecycle", func() {
3839
It("installs, runs, and remove services", func() {
3940
Expect(swc.IsRunning(label)).To(BeFalse())
4041

41-
contents, err := ioutil.ReadFile(fixturePath("simple.yml"))
42+
contents, err := ioutil.ReadFile(fixturePath(fmt.Sprintf("simple-%s.yml", runtime.GOOS)))
4243
Expect(err).NotTo(HaveOccurred())
4344

4445
var cfg config.Config

0 commit comments

Comments
 (0)