summaryrefslogtreecommitdiffhomepage
path: root/test/benchmarks/harness
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-07-15 18:19:52 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-15 18:21:51 -0700
commit5c8c0d65b9062dcbe195e7131a6a3c3fb8ba9583 (patch)
tree6b547e821ec9d073778a7dc2bb03b2de3622db21 /test/benchmarks/harness
parente92f38ff0cd2e490637df2081fc8f75ddaf32937 (diff)
Port httpd benchmark
PiperOrigin-RevId: 321478001
Diffstat (limited to 'test/benchmarks/harness')
-rw-r--r--test/benchmarks/harness/machine.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/benchmarks/harness/machine.go b/test/benchmarks/harness/machine.go
index 032b387fc..93c0db9ce 100644
--- a/test/benchmarks/harness/machine.go
+++ b/test/benchmarks/harness/machine.go
@@ -33,6 +33,9 @@ type Machine interface {
// Returns IP Address for the machine.
IPAddress() (net.IP, error)
+
+ // CleanUp cleans up this machine.
+ CleanUp()
}
// localMachine describes this machine.
@@ -62,3 +65,7 @@ func (l *localMachine) IPAddress() (net.IP, error) {
addr := conn.LocalAddr().(*net.UDPAddr)
return addr.IP, nil
}
+
+// CleanUp implements Machine.CleanUp and does nothing for localMachine.
+func (*localMachine) CleanUp() {
+}