Test failover
This commit is contained in:
@@ -88,6 +88,10 @@ func (ts *TestSystem) Stop() {
|
||||
ts.proxy.Close()
|
||||
}
|
||||
|
||||
func (ts *TestSystem) SetServer(i int) {
|
||||
ts.proxy.SetBackend(ts.Server(i).Addr())
|
||||
}
|
||||
|
||||
func (ts *TestSystem) Server(i int) *TestServer {
|
||||
return ts.servers[i]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user