mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
ips: register types with gob
This commit is contained in:
committed by
Dan Christian Bogos
parent
cb968db68a
commit
644661b778
@@ -53,6 +53,11 @@ func init() {
|
||||
gob.Register(new(utils.ResourceProfileWithAPIOpts))
|
||||
gob.Register(new(utils.ResourceWithAPIOpts))
|
||||
gob.Register(new(utils.TPResourceProfile))
|
||||
// IP
|
||||
gob.Register(new(utils.IPAllocations))
|
||||
gob.Register(new(utils.IPProfile))
|
||||
gob.Register(new(utils.IPProfileWithAPIOpts))
|
||||
gob.Register(new(utils.IPAllocationsWithAPIOpts))
|
||||
// Stats
|
||||
gob.Register(new(StatQueue))
|
||||
gob.Register(new(StatQueueProfile))
|
||||
|
||||
@@ -321,10 +321,10 @@ func TestOfflineInternal(t *testing.T) { // run with sudo
|
||||
t.Error(err)
|
||||
} else if dirs != 36 {
|
||||
t.Errorf("expected <%d> directories, received <%d>", 36, dirs)
|
||||
} else if i > 6 && files != 31 {
|
||||
t.Errorf("expected <%d> files, received <%d>", 31, files)
|
||||
} else if i < 6 && files != 30 {
|
||||
t.Errorf("expected <%d> files, received <%d>", 30, files)
|
||||
} else if i > 6 && files != 33 {
|
||||
t.Errorf("expected <%d> files, received <%d>", 33, files)
|
||||
} else if i < 6 && files != 32 {
|
||||
t.Errorf("expected <%d> files, received <%d>", 32, files)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -345,7 +345,7 @@ func TestOfflineInternal(t *testing.T) { // run with sudo
|
||||
} else if dirs != 3 {
|
||||
t.Errorf("expected <%d> directories, received <%d>", 3, dirs)
|
||||
} else if files != 1 {
|
||||
t.Errorf("expected <%d> files, received <%d>", 1, files)
|
||||
t.Errorf("expected <%d> files, received <%d>", 3, files)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user