Test failover

This commit is contained in:
Ian Gulliver
2023-06-04 13:44:26 -07:00
parent bce6488620
commit 7c3e760759
5 changed files with 67 additions and 23 deletions

View File

@@ -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]
}