aboutsummaryrefslogtreecommitdiff
path: root/http_server_play_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-10 03:23:02 +0700
committerShulhan <ms@kilabit.info>2023-12-14 20:23:47 +0700
commitf1bcd6e27e9cbf541b9f6d76944bb491aede370a (patch)
tree7349319155d7f8321afc9df08c3ed4ef71bbfcea /http_server_play_test.go
parent87b79dbd1da7acc73456b3fbfe59a40b59bf116f (diff)
downloadawwan-f1bcd6e27e9cbf541b9f6d76944bb491aede370a.tar.xz
all: changes based on reports from linter revive
Better to fix and follow the reported warnings rather than adding configuration file to add an exception.
Diffstat (limited to 'http_server_play_test.go')
-rw-r--r--http_server_play_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_server_play_test.go b/http_server_play_test.go
index df9f4f3..ed5bae6 100644
--- a/http_server_play_test.go
+++ b/http_server_play_test.go
@@ -66,7 +66,7 @@ func TestHttpServerPlaySshConfigChanges(t *testing.T) {
var httpd *httpServer
- httpd, err = newHttpServer(aww, ``)
+ httpd, err = newHTTPServer(aww, ``)
if err != nil {
t.Fatal(err)
}
@@ -92,7 +92,7 @@ func testHttpExecute(t *testing.T, httpd *httpServer, tdata *test.Data, tag stri
reqBody.Write(tdata.Input[tag])
- var httpReq = httptest.NewRequest(http.MethodPost, pathAwwanApiExecute, &reqBody)
+ var httpReq = httptest.NewRequest(http.MethodPost, pathAwwanAPIExecute, &reqBody)
var httpWriter = httptest.NewRecorder()
httpd.ServeHTTP(httpWriter, httpReq)