Jordan Schalm 8 år sedan
förälder
incheckning
2db6573b46
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. 4 3
      tests/guerrilla_test.go

+ 4 - 3
tests/guerrilla_test.go

@@ -33,8 +33,9 @@ import (
 	"net"
 	"strings"
 
-	"github.com/flashmob/go-guerrilla/tests/testcert"
 	"os"
+
+	"github.com/flashmob/go-guerrilla/tests/testcert"
 )
 
 type TestConfig struct {
@@ -245,7 +246,7 @@ func TestGreeting(t *testing.T) {
 	if read, err := ioutil.ReadFile("./testlog"); err == nil {
 		logOutput := string(read)
 		//fmt.Println(logOutput)
-		if i := strings.Index(logOutput, "Handle client [127.0.0.1"); i < 0 {
+		if i := strings.Index(logOutput, "Handle client"); i < 0 {
 			t.Error("Server did not handle any clients")
 		}
 	}
@@ -304,7 +305,7 @@ func TestShutDown(t *testing.T) {
 	if read, err := ioutil.ReadFile("./testlog"); err == nil {
 		logOutput := string(read)
 		//	fmt.Println(logOutput)
-		if i := strings.Index(logOutput, "Handle client [127.0.0.1"); i < 0 {
+		if i := strings.Index(logOutput, "Handle client"); i < 0 {
 			t.Error("Server did not handle any clients")
 		}
 	}