diff --git a/Makefile b/Makefile index 184548c..4152d06 100644 --- a/Makefile +++ b/Makefile @@ -59,4 +59,6 @@ copy: cp -r ts/out assets/web/html zip: - zip -r assets/web/html.zip ts/out/* + rm assets/web/html.zip + # this won't work as it creates ts/out entry in the .zip: zip -r assets/web/html.zip ts/out/* + cd ts/out && zip -r ../../assets/web/html.zip ./* diff --git a/assets/web/html.zip b/assets/web/html.zip index 2ddb579..61a3c6d 100644 Binary files a/assets/web/html.zip and b/assets/web/html.zip differ diff --git a/tests/e2e/run_binary_test.go b/tests/e2e/run_binary_test.go index d41cfc0..eadeea9 100644 --- a/tests/e2e/run_binary_test.go +++ b/tests/e2e/run_binary_test.go @@ -14,6 +14,7 @@ import ( "github.com/stretchr/testify/assert" ) +//goland:noinspection HttpUrlsUsage func TestRunBinary(t *testing.T) { binary, err := FindBinary(t) @@ -32,7 +33,6 @@ func TestRunBinary(t *testing.T) { assert.True(t, LogContainsText(c.Status(), "listening on localhost:12345") || LogContainsText(c.Status(), "listening on 127.0.0.1:12345"), WhatsWrong(c.Status())) - //goland:noinspection HttpUrlsUsage url := fmt.Sprintf("http://%s:%d", host, port) Test(t, @@ -41,4 +41,14 @@ func TestRunBinary(t *testing.T) { Expect().Status().Equal(http.StatusOK), Expect().Body().String().Contains("Live pprof"), ) + + url = fmt.Sprintf("http://%s:%d/favicon.ico", host, port) + + Test(t, + Description("Get favicon.ico: "+url), + Get(url), + Expect().Status().Equal(http.StatusOK), + Expect().Headers("content-type").Equal("image/x-icon"), + Expect().Body().Bytes().Len().GreaterThan(0), + ) }