aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnstap/out/tcp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/dnstap/out/tcp_test.go')
-rw-r--r--plugin/dnstap/out/tcp_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin/dnstap/out/tcp_test.go b/plugin/dnstap/out/tcp_test.go
index 113603cd4..45ac98bf7 100644
--- a/plugin/dnstap/out/tcp_test.go
+++ b/plugin/dnstap/out/tcp_test.go
@@ -9,11 +9,9 @@ func sendOneTCP(tcp *TCP) error {
if _, err := tcp.Write([]byte("frame")); err != nil {
return err
}
- if err := tcp.Flush(); err != nil {
- return err
- }
- return nil
+ return tcp.Flush()
}
+
func TestTCP(t *testing.T) {
tcp := NewTCP("localhost:14000")