From 4df448ad6cdfa2e60fa0167e5f70cc1127fbd3bf Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Tue, 13 Mar 2018 13:02:39 +0100 Subject: Add API to set ControlPing msg and fail connect on unknown ID Change-Id: Idd651a29d9fc3903f52d6fe8945add3052a28b52 Signed-off-by: Ondrej Fabry --- core/core_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/core_test.go') diff --git a/core/core_test.go b/core/core_test.go index 682309d..e80f97c 100644 --- a/core/core_test.go +++ b/core/core_test.go @@ -207,9 +207,9 @@ func TestFullBuffer(t *testing.T) { vppReply := <-ctx.ch.ReplyChan Expect(vppReply).ShouldNot(BeNil()) - received := false + var received bool select { - case vppReply = <-ctx.ch.ReplyChan: + case <-ctx.ch.ReplyChan: received = true // this should not happen default: received = false // no reply to be received -- cgit 1.2.3-korg