diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2017-11-28 19:53:14 +0100 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2017-11-28 19:53:14 +0100 |
commit | 67482a4f8c3a3a7cf17b4edf82e61c28b318ffd9 (patch) | |
tree | f08519f399f345439bd3b3cfd4f61c1c63e34889 /cmd | |
parent | 3f1edad4e6ba0a7876750aea55507fae14d8badf (diff) |
Add WaitReady to VppAdapter
- this fixes issue with mocked adapter during AsyncConnect
Change-Id: I952025fec865422f9e83cec9383d96f79a639c90
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/binapi-generator/generator_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/binapi-generator/generator_test.go b/cmd/binapi-generator/generator_test.go index c7d89ce..a42e794 100644 --- a/cmd/binapi-generator/generator_test.go +++ b/cmd/binapi-generator/generator_test.go @@ -245,7 +245,7 @@ func TestGenerateMessageFieldTypes(t *testing.T) { for j := 0; j < types.At(i).Len(); j++ { field := types.At(i).At(j) if jsongo.TypeArray == field.GetType() { - err := processMessageField(testCtx, &fields, field, otherMessage) + err := processMessageField(testCtx, &fields, field, false) Expect(err).ShouldNot(HaveOccurred()) Expect(fields[j-1]).To(BeEquivalentTo(expectedTypes[j-1])) } @@ -282,7 +282,7 @@ func TestGenerateMessageFieldMessages(t *testing.T) { specificFieldName == "client_index" || specificFieldName == "context" { continue } - err := processMessageField(testCtx, &fields, field, requestMessage) + err := processMessageField(testCtx, &fields, field, false) Expect(err).ShouldNot(HaveOccurred()) Expect(fields[customIndex]).To(BeEquivalentTo(expectedTypes[customIndex])) customIndex++ |