summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/faketime/BUILD
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-01-28 17:05:44 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-28 17:08:12 -0800
commit56fb2ec1194bff7c57c7bbb84b7b74f63142b915 (patch)
tree2635e8d65e413861c3789a55fc5fed685c13f3ea /pkg/tcpip/faketime/BUILD
parentb4357939c0049b7385d98aa0ea7d2d1e00d0710f (diff)
Do not use clockwork for faketime
Clockwork does not support timers being reset/stopped from different goroutines. Our current use of clockwork causes data races and gotsan complains about clockwork. This change uses our own implementation of faketime, avoiding data races. PiperOrigin-RevId: 354428208
Diffstat (limited to 'pkg/tcpip/faketime/BUILD')
-rw-r--r--pkg/tcpip/faketime/BUILD5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/tcpip/faketime/BUILD b/pkg/tcpip/faketime/BUILD
index 114d43df3..bb9d44aff 100644
--- a/pkg/tcpip/faketime/BUILD
+++ b/pkg/tcpip/faketime/BUILD
@@ -6,10 +6,7 @@ go_library(
name = "faketime",
srcs = ["faketime.go"],
visibility = ["//visibility:public"],
- deps = [
- "//pkg/tcpip",
- "@com_github_dpjacques_clockwork//:go_default_library",
- ],
+ deps = ["//pkg/tcpip"],
)
go_test(