Skip to content

Commit

Permalink
Merge pull request #157 from vfarcic/my-pr
Browse files Browse the repository at this point in the history
My PR
  • Loading branch information
vfarcic authored Dec 1, 2019
2 parents 2524f1a + 72c2e78 commit dfb248a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/go-demo-6/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ go-demo-6-db:
replicaSet:
enabled: true


usePassword: false
10 changes: 10 additions & 0 deletions charts/preview/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ preview:
tag:
pullPolicy: IfNotPresent
probePath: /demo/hello?health=true


db:
enabled: false

preview-db:
persistence:
enabled: false

usePassword: false
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func HelloServer(w http.ResponseWriter, req *http.Request) {
delayNum, _ := strconv.Atoi(delay)
sleep(time.Duration(delayNum) * time.Millisecond)
}
io.WriteString(w, "hello, devpod with tests!\n")
io.WriteString(w, "hello, PR!\n")
}

func RandomErrorServer(w http.ResponseWriter, req *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (s *MainTestSuite) Test_HelloServer_WritesHelloWorld() {

HelloServer(w, req)

w.AssertCalled(s.T(), "Write", []byte("hello, devpod with tests!\n"))
w.AssertCalled(s.T(), "Write", []byte("hello, PR!\n"))
}

func (s *MainTestSuite) Test_HelloServer_Waits_WhenDelayIsPresent() {
Expand Down

0 comments on commit dfb248a

Please sign in to comment.