add tests / modify providers setup

This commit is contained in:
Callum Waters
2021-08-25 19:24:15 +02:00
parent d44d281d80
commit d71edfc960
12 changed files with 197 additions and 174 deletions
+1 -1
View File
@@ -989,7 +989,7 @@ func (c *Client) findNewPrimary(ctx context.Context, height int64, remove bool)
c.providerMutex.Lock()
defer c.providerMutex.Unlock()
if len(c.witnesses) <= 1 {
if len(c.witnesses) < 1 {
return nil, ErrNoWitnesses
}