Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Binary API generator improvements
[govpp.git]
/
core
/
connection_test.go
diff --git
a/core/connection_test.go
b/core/connection_test.go
index
643d4a3
..
453bbce
100644
(file)
--- a/
core/connection_test.go
+++ b/
core/connection_test.go
@@
-15,6
+15,7
@@
package core_test
import (
package core_test
import (
+ "git.fd.io/govpp.git/examples/binapi/interface_types"
"testing"
. "github.com/onsi/gomega"
"testing"
. "github.com/onsi/gomega"
@@
-161,7
+162,7
@@
func TestMultiRequestsWithSequenceNumbers(t *testing.T) {
var msgs []api.Message
for i := 0; i < 10; i++ {
var msgs []api.Message
for i := 0; i < 10; i++ {
- msgs = append(msgs, &interfaces.SwInterfaceDetails{SwIfIndex: interfaces.InterfaceIndex(i)})
+ msgs = append(msgs, &interfaces.SwInterfaceDetails{SwIfIndex: interface
_type
s.InterfaceIndex(i)})
}
ctx.mockVpp.MockReply(msgs...)
ctx.mockVpp.MockReply(&vpe.ControlPingReply{})
}
ctx.mockVpp.MockReply(msgs...)
ctx.mockVpp.MockReply(&vpe.ControlPingReply{})
@@
-280,7
+281,7
@@
func TestMultiRequestsWithErrors(t *testing.T) {
}
for i := 0; i < 10; i++ {
msgs = append(msgs, mock.MsgWithContext{
}
for i := 0; i < 10; i++ {
msgs = append(msgs, mock.MsgWithContext{
- Msg: &interfaces.SwInterfaceDetails{SwIfIndex: interfaces.InterfaceIndex(i)},
+ Msg: &interfaces.SwInterfaceDetails{SwIfIndex: interface
_type
s.InterfaceIndex(i)},
SeqNum: 1,
Multipart: true,
})
SeqNum: 1,
Multipart: true,
})