From c744cd5ef2f482ea972c696a179a6f3be291e756 Mon Sep 17 00:00:00 2001 From: DanB Date: Thu, 9 Oct 2014 14:22:30 +0200 Subject: [PATCH] Small local test fixup following AttrGetTPRatingPlan modifications --- apier/v1/apier_local_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apier/v1/apier_local_test.go b/apier/v1/apier_local_test.go index 676f31b5c..529d220c8 100644 --- a/apier/v1/apier_local_test.go +++ b/apier/v1/apier_local_test.go @@ -426,13 +426,13 @@ func TestApierTPRatingPlan(t *testing.T) { } // Test get var rplyRpTst *utils.TPRatingPlan - if err := rater.Call("ApierV1.GetTPRatingPlan", AttrGetTPRatingPlan{rpTst.TPid, rpTst.RatingPlanId}, &rplyRpTst); err != nil { + if err := rater.Call("ApierV1.GetTPRatingPlan", AttrGetTPRatingPlan{TPid: rpTst.TPid, RatingPlanId: rpTst.RatingPlanId}, &rplyRpTst); err != nil { t.Error("Calling ApierV1.GetTPRatingPlan, got error: ", err.Error()) } else if !reflect.DeepEqual(rpTst, rplyRpTst) { t.Errorf("Calling ApierV1.GetTPRatingPlan expected: %v, received: %v", rpTst, rplyRpTst) } // Test remove - if err := rater.Call("ApierV1.RemTPRatingPlan", AttrGetTPRatingPlan{rpTst.TPid, rpTst.RatingPlanId}, &reply); err != nil { + if err := rater.Call("ApierV1.RemTPRatingPlan", AttrGetTPRatingPlan{TPid: rpTst.TPid, RatingPlanId: rpTst.RatingPlanId}, &reply); err != nil { t.Error("Calling ApierV1.RemTPRatingPlan, got error: ", err.Error()) } else if reply != "OK" { t.Error("Calling ApierV1.RemTPRatingPlan received: ", reply)