Skip to content

Commit

Permalink
Fix the failing tests for 99-labs/02-webapps
Browse files Browse the repository at this point in the history
  • Loading branch information
rg0now committed Oct 4, 2023
1 parent bd3a86b commit e09ca0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions 99-labs/02-webapps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ metadata:
labels:
app: helloworld
spec:
replicas: 2
selector:
matchLabels:
app: helloworld
Expand Down
2 changes: 1 addition & 1 deletion 99-labs/code/helloworld/helloworld_with_goversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ func TestHelloWorldWithGoVersion(t *testing.T) {

body, err := io.ReadAll(res.Body)
assert.NoError(t, err, "read response body")
r := regexp.MustCompile("^Hello world from .* running Go version .*$")
r := regexp.MustCompile("^Hello world from .* running Go version.*")
assert.Regexp(t, r, string(body), "response")
}
2 changes: 1 addition & 1 deletion 99-labs/code/helloworld/helloworld_with_hostname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ func TestHelloWorldWithHosname(t *testing.T) {

body, err := io.ReadAll(res.Body)
assert.NoError(t, err, "read response body")
r := regexp.MustCompile("^Hello world from .*$")
r := regexp.MustCompile("^Hello world from.*")
assert.Regexp(t, r, string(body), "response")
}

0 comments on commit e09ca0a

Please sign in to comment.