chore: fix function name in comment

Signed-off-by: eveneast <qcqs@foxmail.com>
This commit is contained in:
eveneast
2024-04-15 15:11:49 +08:00
parent feddce0536
commit 35fcb01d00
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ type QueuedHTTPTester struct {
br *bytes.Reader
}
// NewHTTPTester returns an instantiated HTTP tester.
// NewQueuedHTTPTester returns an instantiated HTTP tester.
func NewQueuedHTTPTester(addr, path string) *QueuedHTTPTester {
return &QueuedHTTPTester{
client: http.Client{},

View File

@@ -12,7 +12,7 @@ import (
"github.com/rqlite/rqlite/v8/rtls"
)
// Test_IsServingHTTP_HTTPServerOnly tests only HTTP server running.
// Test_IsServingHTTP_HTTPServer tests only HTTP server running.
func Test_IsServingHTTP_HTTPServer(t *testing.T) {
httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
@@ -28,7 +28,7 @@ func Test_IsServingHTTP_HTTPServer(t *testing.T) {
}
}
// Test_IsServingHTTP_HTTPSServerOnly tests only HTTPS server running.
// Test_IsServingHTTP_HTTPSServer tests only HTTPS server running.
func Test_IsServingHTTP_HTTPSServer(t *testing.T) {
httpsServer := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)

View File

@@ -68,7 +68,7 @@ func (qp QueryParams) Tx() bool {
return qp.HasKey("transaction")
}
// Query returns true if the query parameters request queued operation
// Queue returns true if the query parameters request queued operation
func (qp QueryParams) Queue() bool {
return qp.HasKey("queue")
}