mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
chore: fix function name in comment
Signed-off-by: eveneast <qcqs@foxmail.com>
This commit is contained in:
@@ -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{},
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user