Support for GO v1.6.2 70/5770/1 v0.7.3-1
authorMohamed Abukar <abukar.mohamed@nokia.com>
Tue, 16 Mar 2021 14:35:40 +0000 (16:35 +0200)
committerMohamed Abukar <abukar.mohamed@nokia.com>
Tue, 16 Mar 2021 14:38:07 +0000 (16:38 +0200)
Change-Id: I4d0754cc648b66e97d451d2f2d0369a5f686f236
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
pkg/xapp/xapp.go
pkg/xapp/xapp_test.go

index de355fb..68d9045 100755 (executable)
@@ -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()
 
index 388d079..79c790b 100755 (executable)
@@ -32,10 +32,10 @@ import (
        "time"
 )
 
-//var _ = func() bool {
-//     testing.Init()
-//     return true
-//}()
+var _ = func() bool {
+       testing.Init()
+       return true
+}()
 
 type Consumer struct{}