Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add some rmr library stats into metrics
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
rmrendpointlist_test.go
diff --git
a/pkg/xapp/rmrendpointlist_test.go
b/pkg/xapp/rmrendpointlist_test.go
old mode 100644
(file)
new mode 100755
(executable)
index
cbef96e
..
fe073e9
--- a/
pkg/xapp/rmrendpointlist_test.go
+++ b/
pkg/xapp/rmrendpointlist_test.go
@@
-26,7
+26,7
@@
import (
func TestRmrEndpointList(t *testing.T) {
Logger.Info("CASE: TestRmrEndpointList")
func TestRmrEndpointList(t *testing.T) {
Logger.Info("CASE: TestRmrEndpointList")
- epl :=
&RmrEndpointList{}
+ epl :=
NewRmrEndpointList()
// Simple add / has / delete
if epl.AddEndpoint(NewRmrEndpoint("127.0.0.1:8080")) == false {
// Simple add / has / delete
if epl.AddEndpoint(NewRmrEndpoint("127.0.0.1:8080")) == false {
@@
-41,6
+41,9
@@
func TestRmrEndpointList(t *testing.T) {
if epl.HasEndpoint(NewRmrEndpoint("127.0.0.1:8081")) == false {
t.Errorf("RmrEndpointList: 8081 has failed")
}
if epl.HasEndpoint(NewRmrEndpoint("127.0.0.1:8081")) == false {
t.Errorf("RmrEndpointList: 8081 has failed")
}
+
+ Logger.Info("%+v -- %+v -- %d", epl.String(), epl.StringList(), epl.Size())
+
if epl.DelEndpoint(NewRmrEndpoint("127.0.0.1:8081")) == false {
t.Errorf("RmrEndpointList: 8081 del failed")
}
if epl.DelEndpoint(NewRmrEndpoint("127.0.0.1:8081")) == false {
t.Errorf("RmrEndpointList: 8081 del failed")
}