From dfd179ba4d441e60a99e9cec9d7603c68adc5b20 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Thu, 17 Jun 2021 10:33:16 +0300 Subject: [PATCH] Updated engine tests --- engine/z_libindex_health_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/z_libindex_health_test.go b/engine/z_libindex_health_test.go index 736f23b2f..133e8a5b5 100644 --- a/engine/z_libindex_health_test.go +++ b/engine/z_libindex_health_test.go @@ -126,7 +126,10 @@ func TestHealthAccountAction4(t *testing.T) { db := NewInternalDB(nil, nil, true) dm := NewDataManager(db, cfg.CacheCfg(), nil) - if err := dm.SetAccountActionPlans("1002", []string{"AP2"}, true); err != nil { + if err := dm.SetAccountActionPlans("1002", []string{"AP2", "AP1"}, true); err != nil { + t.Fatal(err) + } + if err := dm.SetAccountActionPlans("1001", []string{"AP2"}, true); err != nil { t.Fatal(err) } if err := dm.SetActionPlan("AP1", &ActionPlan{ @@ -147,7 +150,7 @@ func TestHealthAccountAction4(t *testing.T) { exp := &IndexHealthReply{ MissingObjects: []string{}, MissingIndexes: map[string][]string{}, - BrokenReferences: map[string][]string{"AP2": {"1001"}, "AP1": {"1002"}}, + BrokenReferences: map[string][]string{"AP2": {"1002"}}, } if rply, err := GetAccountActionPlanIndexHealth(dm, -1, -1, -1, -1, false, false); err != nil { t.Fatal(err)