Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cleanups #23

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/tnd/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// package main contains a TND example.
/*
Tnd is a TND example.
*/
package main

import (
Expand Down
2 changes: 1 addition & 1 deletion internal/https/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func TestServerCheck(t *testing.T) {
// start test https server
ts := httptest.NewTLSServer(http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {}))
func(http.ResponseWriter, *http.Request) {}))
defer ts.Close()

// test invalid server
Expand Down
7 changes: 5 additions & 2 deletions pkg/tnd/detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"reflect"
"testing"
"time"

log "github.com/sirupsen/logrus"
)

// testWatcher is a watcher that implements the routes.Watcher and
Expand Down Expand Up @@ -55,7 +57,7 @@ func TestDetectorSetGetDialer(t *testing.T) {
func TestDetectorProbe(t *testing.T) {
// start test https server
ts := httptest.NewTLSServer(http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {}))
func(http.ResponseWriter, *http.Request) {}))
defer ts.Close()

// create detector
Expand Down Expand Up @@ -117,7 +119,8 @@ func TestDetectorHandleProbeResult(t *testing.T) {

// drain results channel
go func() {
for range tnd.results {
for r := range tnd.results {
log.Println("result:", r)
}
}()

Expand Down
Loading