Browse Source

wgengine/bench: disable unused benchmark that relies on legacy magicsock.

Signed-off-by: David Anderson <[email protected]>
David Anderson 4 years ago
parent
commit
61c62f48d9
2 changed files with 2 additions and 2 deletions
  1. 1 0
      wgengine/bench/bench_test.go
  2. 1 2
      wgengine/bench/wg.go

+ 1 - 0
wgengine/bench/bench_test.go

@@ -42,6 +42,7 @@ func BenchmarkBatchTCP(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) {
 		setupWGTest(b, logf, traf, Addr1, Addr2)
 	})

+ 1 - 2
wgengine/bench/wg.go

@@ -32,6 +32,7 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
 	if err != nil {
 		log.Fatalf("e1 NewPrivateKey: %v", err)
 	}
+
 	c1 := wgcfg.Config{
 		Name:       "e1",
 		PrivateKey: k1,
@@ -105,7 +106,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
 		}
 		endpoint := wgcfg.Endpoints{
 			PublicKey: c1.PrivateKey.Public(),
-			IPPorts:   wgcfg.NewIPPortSet(ipps...),
 		}
 
 		n := tailcfg.Node{
@@ -149,7 +149,6 @@ func setupWGTest(b *testing.B, logf logger.Logf, traf *TrafficGen, a1, a2 netadd
 		}
 		endpoint := wgcfg.Endpoints{
 			PublicKey: c2.PrivateKey.Public(),
-			IPPorts:   wgcfg.NewIPPortSet(ipps...),
 		}
 
 		n := tailcfg.Node{