Improve Swagger DMaaP Mediator Producer
Issue-ID: NONRTRIC-702
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Ib0a1c5c31b21b14174b48af9c0b577014cb88e36
diff --git a/dmaap-mediator-producer/main_test.go b/dmaap-mediator-producer/main_test.go
index 3653e9e..19851be 100644
--- a/dmaap-mediator-producer/main_test.go
+++ b/dmaap-mediator-producer/main_test.go
@@ -22,6 +22,7 @@
import (
"bytes"
+ "fmt"
"io/ioutil"
"net/http"
"os/exec"
@@ -40,7 +41,10 @@
func TestGenerateSwaggerDocs(t *testing.T) {
cmd := exec.Command("./generate_swagger_docs.sh")
- cmd.Run()
+ err := cmd.Run()
+ if err != nil {
+ fmt.Println("Error generating Swagger:", err)
+ }
}
func TestValidateConfiguration(t *testing.T) {