Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
testing/server_test: closing test server at end of function
Browse files Browse the repository at this point in the history
  • Loading branch information
flavianmissi committed Dec 9, 2013
1 parent ce203cb commit 40c834e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testing/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var _ = gocheck.Suite(&S{})
func (s *S) TestGandalfServerShouldRespondeToCalls(c *gocheck.C) {
h := TestHandler{}
ts := TestServer(&h)
defer ts.Close()
_, err := http.Get(ts.URL + "/test-server")
c.Assert(err, gocheck.IsNil)
c.Assert(h.Url, gocheck.Equals, "/test-server")
Expand Down

0 comments on commit 40c834e

Please sign in to comment.