mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Make sure to enforce HA asset limits during peer processing as well as assignment.
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -106,11 +106,11 @@ func require_Error(t *testing.T, err error, expected ...error) {
|
||||
}
|
||||
|
||||
for _, e := range expected {
|
||||
if err == e || strings.Contains(e.Error(), eStr) {
|
||||
if err == e || strings.Contains(eStr, e.Error()) || strings.Contains(e.Error(), eStr) {
|
||||
return
|
||||
}
|
||||
}
|
||||
t.Fatalf("Expected one of %+v, got '%v'", expected, err)
|
||||
t.Fatalf("Expected one of %v, got '%v'", expected, err)
|
||||
}
|
||||
|
||||
func require_Equal(t *testing.T, a, b string) {
|
||||
|
||||
Reference in New Issue
Block a user