Files
netbird/relay/testec2/tun/tun_test.go
Zoltán Papp ce383eb259 Add ec2 test
2024-08-14 16:39:40 +02:00

17 lines
241 B
Go

package tun
import "testing"
func TestDevice_assignIP(t *testing.T) {
d := Device{
Name: "mytun0",
IP: "10.0.0.1",
}
err := d.Up()
if err != nil {
t.Fatalf("failed to bring up device: %v", err)
}
defer d.Close()
select {}
}