Skip to content

Commit

Permalink
Update example to use fake service close func
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Jun 11, 2020
1 parent 7399898 commit 3566a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fakeService := httpfake.New()

// bring down the server once we
// finish running our tests
defer fakeService.Server.Close()
defer fakeService.Close()

// register a handler for our fake service
fakeService.NewHandler().
Expand Down

0 comments on commit 3566a5f

Please sign in to comment.