Skip to content

Commit e07f067

Browse files
Changed the language for the when clause.
1 parent e795b56 commit e07f067

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎chapter9/listing01/listing01_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ func TestDownload(t *testing.T) {
1616

1717
t.Log("Given the need to test downloading content.")
1818
{
19-
t.Logf("\tWhen the URL is \"%s\" with status code \"%d\"", url, statusCode)
19+
t.Logf("\tWhen checking \"%s\" for status code \"%d\"",
20+
url, statusCode)
2021
{
2122
resp, err := http.Get(url)
2223
if err == nil {

‎chapter9/listing02/listing02_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ func TestDownload(t *testing.T) {
2323
t.Log("Given the need to test downloading different content.")
2424
{
2525
for _, u := range urls {
26-
t.Logf("\tWhen the URL is \"%s\" with status code \"%d\"", u.url, u.statusCode)
26+
t.Logf("\tWhen checking \"%s\" for status code \"%d\"",
27+
u.url, u.statusCode)
2728
{
2829
resp, err := http.Get(u.url)
2930
if err == nil {

‎chapter9/listing03/listing03_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ func TestDownload(t *testing.T) {
7878

7979
t.Log("Given the need to test downloading content.")
8080
{
81-
t.Logf("\tWhen the URL is \"%s\" with status code \"%d\"", server.URL, statusCode)
81+
t.Logf("\tWhen checking \"%s\" for status code \"%d\"",
82+
server.URL, statusCode)
8283
{
8384
resp, err := http.Get(server.URL)
8485
if err == nil {

0 commit comments

Comments
 (0)