mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
Fix failing test from utils/safemapstorage_test.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
07ade3dc45
commit
26537a406b
@@ -19,6 +19,7 @@ package utils
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"sort"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -96,8 +97,11 @@ func TestSafeMapStorageGetKeys(t *testing.T) {
|
||||
}
|
||||
|
||||
expected := []string{"*req.field1", "*req.field2"}
|
||||
if reply := ms.GetKeys(false, 0, MetaReq); !reflect.DeepEqual(reply, expected) {
|
||||
t.Errorf("Expected %v \n but received \n %v", expected, reply)
|
||||
reply := ms.GetKeys(false, 0, MetaReq)
|
||||
sort.Strings(reply)
|
||||
|
||||
if !reflect.DeepEqual(reply, expected) {
|
||||
t.Errorf("expected: <%+v>, \nreceived: <%+v>", expected, reply)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user