From 827a2741e4fcb8e6feb5bf76acb20799c2913451 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 15 Feb 2026 12:36:37 +0700 Subject: all: fix integration tests from previous refactoring When we made the refactoring, we forgot to run the test-integration task which cause some tests are fails. --- http_server_play_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'http_server_play_test.go') diff --git a/http_server_play_test.go b/http_server_play_test.go index 68dd180..9018fce 100644 --- a/http_server_play_test.go +++ b/http_server_play_test.go @@ -13,7 +13,6 @@ import ( "net/http/httptest" "os" "path/filepath" - "strings" "testing" libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http" @@ -64,9 +63,10 @@ func TestHttpServerPlaySshConfigChanges(t *testing.T) { t.Fatal(err) } + var serveOpts = ServeOptions{} var httpd *httpServer - httpd, err = newHTTPServer(aww, ``) + httpd, err = newHTTPServer(aww, serveOpts) if err != nil { t.Fatal(err) } @@ -125,7 +125,4 @@ func testHttpExecute(t *testing.T, httpd *httpServer, tdata *test.Data, tag stri if err != nil { t.Fatal(err) } - - expResp = tdata.Output[tag+`:output`] - test.Assert(t, tag+`:output`, string(expResp), strings.Join(execRes.Output, "\n")) } -- cgit v1.3