From: Mohamed Abukar Date: Tue, 16 Mar 2021 14:35:40 +0000 (+0200) Subject: Support for GO v1.6.2 X-Git-Tag: v0.7.3-1^0 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F5770%2F1;hp=060448c051013852d463bc13bfc5f0aa3696ac9c;p=ric-plt%2Fxapp-frame.git Support for GO v1.6.2 Change-Id: I4d0754cc648b66e97d451d2f2d0369a5f686f236 Signed-off-by: Mohamed Abukar --- diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index de355fb..68d9045 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{}