From 0d451c45a1cf4ab1ab9914d5b35726698f500ffe Mon Sep 17 00:00:00 2001 From: Mohamed Abukar Date: Tue, 16 Mar 2021 16:35:40 +0200 Subject: [PATCH] Update APIs Change-Id: I4d0754cc648b66e97d451d2f2d0369a5f686f237 Signed-off-by: Mohamed Abukar --- pkg/xapp/xapp.go | 7 +++++++ pkg/xapp/xapp_test.go | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index f778265..06e3bfc 100755 --- a/pkg/xapp/xapp.go +++ b/pkg/xapp/xapp.go @@ -30,9 +30,16 @@ import ( "strings" "sync/atomic" "syscall" + "testing" "time" ) +// For testing purpose +var _ = func() bool { + testing.Init() + return true +}() + type ReadyCB func(interface{}) type ShutdownCB func() diff --git a/pkg/xapp/xapp_test.go b/pkg/xapp/xapp_test.go index 388d079..79c790b 100755 --- a/pkg/xapp/xapp_test.go +++ b/pkg/xapp/xapp_test.go @@ -32,10 +32,10 @@ import ( "time" ) -//var _ = func() bool { -// testing.Init() -// return true -//}() +var _ = func() bool { + testing.Init() + return true +}() type Consumer struct{} -- 2.16.6