mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 05:41:13 +08:00
added try to use func and edited tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
"testing"
|
||||
|
||||
@@ -13,6 +14,13 @@ import (
|
||||
func TestCheckPorts(t *testing.T) {
|
||||
database.InitializeDatabase()
|
||||
defer database.CloseDB()
|
||||
peerUpdate := make(chan *models.Node)
|
||||
go ManageZombies(context.Background(), peerUpdate)
|
||||
go func() {
|
||||
for _ = range peerUpdate {
|
||||
//do nothing
|
||||
}
|
||||
}()
|
||||
|
||||
h := models.Host{
|
||||
ID: uuid.New(),
|
||||
|
Reference in New Issue
Block a user