Code Review
/
ric-plt
/
submgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Some cleaning and bug fixes
[ric-plt/submgr.git]
/
pkg
/
control
/
ut_ctrl_submgr_test.go
diff --git
a/pkg/control/ut_ctrl_submgr_test.go
b/pkg/control/ut_ctrl_submgr_test.go
index
8403c93
..
16da422
100644
(file)
--- a/
pkg/control/ut_ctrl_submgr_test.go
+++ b/
pkg/control/ut_ctrl_submgr_test.go
@@
-57,11
+57,11
@@
func (mc *testingSubmgrControl) wait_registry_empty(t *testing.T, secs int) bool
return false
}
return false
}
-func (mc *testingSubmgrControl) wait_subs_clean(t *testing.T, e2SubsId
int
, secs int) bool {
+func (mc *testingSubmgrControl) wait_subs_clean(t *testing.T, e2SubsId
uint32
, secs int) bool {
var subs *Subscription
i := 1
for ; i <= secs*2; i++ {
var subs *Subscription
i := 1
for ; i <= secs*2; i++ {
- subs = mc.c.registry.GetSubscription(
uint16(e2SubsId)
)
+ subs = mc.c.registry.GetSubscription(
e2SubsId
)
if subs == nil {
return true
}
if subs == nil {
return true
}
@@
-75,11
+75,11
@@
func (mc *testingSubmgrControl) wait_subs_clean(t *testing.T, e2SubsId int, secs
return false
}
return false
}
-func (mc *testingSubmgrControl) wait_subs_trans_clean(t *testing.T, e2SubsId
int
, secs int) bool {
- var trans
*Transaction
+func (mc *testingSubmgrControl) wait_subs_trans_clean(t *testing.T, e2SubsId
uint32
, secs int) bool {
+ var trans
TransactionIf
i := 1
for ; i <= secs*2; i++ {
i := 1
for ; i <= secs*2; i++ {
- subs := mc.c.registry.GetSubscription(
uint16(e2SubsId)
)
+ subs := mc.c.registry.GetSubscription(
e2SubsId
)
if subs == nil {
return true
}
if subs == nil {
return true
}
@@
-97,13
+97,13
@@
func (mc *testingSubmgrControl) wait_subs_trans_clean(t *testing.T, e2SubsId int
return false
}
return false
}
-func (mc *testingSubmgrControl) get_subid(t *testing.T) uint
16
{
+func (mc *testingSubmgrControl) get_subid(t *testing.T) uint
32
{
mc.c.registry.mutex.Lock()
defer mc.c.registry.mutex.Unlock()
return mc.c.registry.subIds[0]
}
mc.c.registry.mutex.Lock()
defer mc.c.registry.mutex.Unlock()
return mc.c.registry.subIds[0]
}
-func (mc *testingSubmgrControl) wait_subid_change(t *testing.T, origSubId uint
16, secs int) (uint16
, bool) {
+func (mc *testingSubmgrControl) wait_subid_change(t *testing.T, origSubId uint
32, secs int) (uint32
, bool) {
i := 1
for ; i <= secs*2; i++ {
mc.c.registry.mutex.Lock()
i := 1
for ; i <= secs*2; i++ {
mc.c.registry.mutex.Lock()