From 3566a5f9773dbffd77684b6f0567df4ec4924d6a Mon Sep 17 00:00:00 2001 From: Max Claus Nunes Date: Thu, 11 Jun 2020 13:30:20 -0300 Subject: [PATCH] Update example to use fake service close func --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a01626c..9fd5ef8 100644 --- a/README.md +++ b/README.md @@ -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().