From 92c7a7bc849e129b9d89326b3ae3b792e0083479 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 23 Nov 2017 16:49:44 +0100 Subject: [PATCH] fixed ci build: Forgot to stop the webserver --- main_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_test.go b/main_test.go index 1e8b263..53a0e48 100644 --- a/main_test.go +++ b/main_test.go @@ -2,6 +2,7 @@ package main import ( "net/http" + "os" "testing" "time" @@ -18,4 +19,5 @@ func TestInitShortener(t *testing.T) { t.Fatal("port is not in use") } close() + os.Exit(0) }