Browse Source

fixing a pointless check I didn't write

0xdcarns 2 years ago
parent
commit
3ab4b5be33
1 changed files with 3 additions and 1 deletions
  1. 3 1
      logic/host_test.go

+ 3 - 1
logic/host_test.go

@@ -2,6 +2,7 @@ package logic
 
 
 import (
 import (
 	"context"
 	"context"
+	"fmt"
 	"net"
 	"net"
 	"testing"
 	"testing"
 
 
@@ -17,7 +18,8 @@ func TestCheckPorts(t *testing.T) {
 	peerUpdate := make(chan *models.Node)
 	peerUpdate := make(chan *models.Node)
 	go ManageZombies(context.Background(), peerUpdate)
 	go ManageZombies(context.Background(), peerUpdate)
 	go func() {
 	go func() {
-		for _ = range peerUpdate {
+		for y := range peerUpdate {
+			fmt.Printf("Pointless %v\n", y)
 			//do nothing
 			//do nothing
 		}
 		}
 	}()
 	}()