diff options
Diffstat (limited to 'test/benchmarks/network/node_test.go')
-rw-r--r-- | test/benchmarks/network/node_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/benchmarks/network/node_test.go b/test/benchmarks/network/node_test.go index 254538899..246720d43 100644 --- a/test/benchmarks/network/node_test.go +++ b/test/benchmarks/network/node_test.go @@ -15,6 +15,7 @@ package network import ( "context" + "os" "strconv" "testing" "time" @@ -24,6 +25,8 @@ import ( "gvisor.dev/gvisor/test/benchmarks/tools" ) +var h harness.Harness + // BenchmarkNode runs requests using 'hey' against a Node server run on // 'runtime'. The server responds to requests by grabbing some data in a // redis instance and returns the data in its reponse. The test loops through @@ -131,5 +134,9 @@ func runNode(b *testing.B, hey *tools.Hey) { // Stop the timer to parse the data and report stats. b.StopTimer() hey.Report(b, out) - b.StartTimer() +} + +func TestMain(m *testing.M) { + h.Init() + os.Exit(m.Run()) } |