aboutsummaryrefslogtreecommitdiff
path: root/http_server_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-02 22:31:42 +0700
committerShulhan <ms@kilabit.info>2026-02-03 17:51:15 +0700
commit7e7ed646e2c3db2404b628e5e8b5584b9de0ff60 (patch)
treeb03344635a0006e2386c3bb451c3316333346a3c /http_server_test.go
parenta6e71dc31738c4a003dae9f9547348968beeefc4 (diff)
downloadawwan-7e7ed646e2c3db2404b628e5e8b5584b9de0ff60.tar.xz
cmd/awwan: implement socket based activation on serve command
The "awwan serve" command now can run based on socket activation under systemd.
Diffstat (limited to 'http_server_test.go')
-rw-r--r--http_server_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/http_server_test.go b/http_server_test.go
index 8617c65..f6a32aa 100644
--- a/http_server_test.go
+++ b/http_server_test.go
@@ -49,7 +49,7 @@ func TestHttpServer_Decrypt(t *testing.T) {
var httpd *httpServer
- httpd, err = newHTTPServer(aww, ``)
+ httpd, err = newHTTPServer(aww, nil, ``)
if err != nil {
t.Fatal(err)
}
@@ -133,7 +133,7 @@ func TestHttpServer_Encrypt(t *testing.T) {
var httpd *httpServer
- httpd, err = newHTTPServer(aww, ``)
+ httpd, err = newHTTPServer(aww, nil, ``)
if err != nil {
t.Fatal(err)
}
@@ -217,7 +217,7 @@ func TestHttpServer_Execute(t *testing.T) {
)
go func() {
- err = aww.Serve(address, isDev)
+ err = aww.Serve(nil, address, isDev)
if err != nil {
log.Fatal(err)
}
@@ -348,7 +348,7 @@ func TestHttpServer_ExecuteCancel(t *testing.T) {
)
go func() {
- err = aww.Serve(address, isDev)
+ err = aww.Serve(nil, address, isDev)
if err != nil {
log.Fatal(err)
}
@@ -497,7 +497,7 @@ func TestHttpServer_FSGet(t *testing.T) {
var httpd *httpServer
- httpd, err = newHTTPServer(aww, ``)
+ httpd, err = newHTTPServer(aww, nil, ``)
if err != nil {
t.Fatal(err)
}