From 3cfee96f252fa5d63bb8062f8ade1e9697103a7b Mon Sep 17 00:00:00 2001 From: Juha Hyttinen Date: Thu, 13 Feb 2020 13:51:00 +0200 Subject: [PATCH] Call go tests in ci docker build Change-Id: I32197a40c49784d297278ebbc28b911d2c6c1d40 Signed-off-by: Juha Hyttinen --- ci/Dockerfile | 2 +- pkg/xapp/xapp_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/Dockerfile b/ci/Dockerfile index f2fc04e..3372520 100755 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -75,4 +75,4 @@ RUN make -C /ws go-build RUN make -C /ws go-test-fmt # Test Requires dbaas -#RUN make -C /ws go-test +RUN make -C /ws go-test diff --git a/pkg/xapp/xapp_test.go b/pkg/xapp/xapp_test.go index c1a049f..27fb445 100755 --- a/pkg/xapp/xapp_test.go +++ b/pkg/xapp/xapp_test.go @@ -21,21 +21,21 @@ package xapp import ( "github.com/gorilla/mux" + "github.com/spf13/viper" "net/http" "net/http/httptest" - "github.com/spf13/viper" "os" "strings" "testing" "time" ) -var _ = func() bool { - testing.Init() - return true -}() +//var _ = func() bool { +// testing.Init() +// return true +//}() -type Consumer struct {} +type Consumer struct{} func (m Consumer) Consume(params *RMRParams) (err error) { Sdl.Store("myKey", params.Payload) -- 2.16.6