wgengine/bench: disable unused benchmark that relies on legacy magicsock.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
54bc3b7d97
commit
61c62f48d9
|
@ -42,6 +42,7 @@ func BenchmarkBatchTCP(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkWireGuardTest(b *testing.B) {
|
func BenchmarkWireGuardTest(b *testing.B) {
|
||||||
|
b.Skip("setup code doesn't support disco yet")
|
||||||
run(b, func(logf logger.Logf, traf *TrafficGen) {
|
run(b, func(logf logger.Logf, traf *TrafficGen) {
|
||||||
setupWGTest(b, logf, traf, Addr1, Addr2)
|
setupWGTest(b, logf, traf, Addr1, Addr2)
|
||||||
})
|
})
|
||||||
|
|
|
@ -32,6 +32,7 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("e1 NewPrivateKey: %v", err)
|
log.Fatalf("e1 NewPrivateKey: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
c1 := wgcfg.Config{
|
c1 := wgcfg.Config{
|
||||||
Name: "e1",
|
Name: "e1",
|
||||||
PrivateKey: k1,
|
PrivateKey: k1,
|
||||||
|
@ -105,7 +106,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
|
||||||
}
|
}
|
||||||
endpoint := wgcfg.Endpoints{
|
endpoint := wgcfg.Endpoints{
|
||||||
PublicKey: c1.PrivateKey.Public(),
|
PublicKey: c1.PrivateKey.Public(),
|
||||||
IPPorts: wgcfg.NewIPPortSet(ipps...),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
n := tailcfg.Node{
|
n := tailcfg.Node{
|
||||||
|
@ -149,7 +149,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
|
||||||
}
|
}
|
||||||
endpoint := wgcfg.Endpoints{
|
endpoint := wgcfg.Endpoints{
|
||||||
PublicKey: c2.PrivateKey.Public(),
|
PublicKey: c2.PrivateKey.Public(),
|
||||||
IPPorts: wgcfg.NewIPPortSet(ipps...),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
n := tailcfg.Node{
|
n := tailcfg.Node{
|
||||||
|
|
Loading…
Reference in New Issue