(c *C)
| 88 | } |
| 89 | |
| 90 | func (s *ServerSuite) TestServerUpsertSame(c *C) { |
| 91 | e := testutils.NewResponder("Hi, I'm endpoint") |
| 92 | defer e.Close() |
| 93 | |
| 94 | b := MakeBatch(Batch{Addr: "localhost:11300", Route: `Path("/")`, URL: e.URL}) |
| 95 | |
| 96 | c.Assert(s.mux.UpsertServer(b.BK, b.S), IsNil) |
| 97 | c.Assert(s.mux.UpsertFrontend(b.F), IsNil) |
| 98 | c.Assert(s.mux.UpsertListener(b.L), IsNil) |
| 99 | |
| 100 | c.Assert(s.mux.Start(), IsNil) |
| 101 | |
| 102 | c.Assert(GETResponse(c, b.FrontendURL("/")), Equals, "Hi, I'm endpoint") |
| 103 | |
| 104 | c.Assert(s.mux.UpsertServer(b.BK, b.S), IsNil) |
| 105 | |
| 106 | c.Assert(GETResponse(c, b.FrontendURL("/")), Equals, "Hi, I'm endpoint") |
| 107 | } |
| 108 | |
| 109 | func (s *ServerSuite) TestServerDefaultListener(c *C) { |
| 110 | e := testutils.NewResponder("Hi, I'm endpoint") |
nothing calls this directly
no test coverage detected