aboutsummaryrefslogtreecommitdiff
path: root/http_server_play_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-15 12:36:37 +0700
committerShulhan <ms@kilabit.info>2026-02-15 12:36:37 +0700
commit827a2741e4fcb8e6feb5bf76acb20799c2913451 (patch)
tree468c533edc4bbc3cbe37ed27260ed033ec87cb99 /http_server_play_test.go
parent1aa46846bc1bfe64c1608e8a536b1732cc3d3b1a (diff)
downloadawwan-827a2741e4fcb8e6feb5bf76acb20799c2913451.tar.xz
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.
Diffstat (limited to 'http_server_play_test.go')
-rw-r--r--http_server_play_test.go7
1 files changed, 2 insertions, 5 deletions
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"))
}