From d493952d541cc0fe11aa2cad18ea6a8760a2f0c5 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 9 Dec 2015 19:21:54 +0200 Subject: [PATCH] fix local test --- 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 aee3f3cc3..404f77228 100644 --- a/apier/v1/apier_local_test.go +++ b/apier/v1/apier_local_test.go @@ -735,8 +735,8 @@ func TestApierSetRatingProfile(t *testing.T) { } else if reply != "OK" { t.Error("Calling ApierV1.SetRatingProfile got reply: ", reply) } - // Calling the second time should raise EXISTS - if err := rater.Call("ApierV1.SetRatingProfile", rpf, &reply); err == nil || err.Error() != "EXISTS" { + // Calling the second time should not raise EXISTS + if err := rater.Call("ApierV1.SetRatingProfile", rpf, &reply); err != nil { t.Error("Unexpected result on duplication: ", err.Error()) } time.Sleep(10 * time.Millisecond) // Give time for cache reload