summaryrefslogtreecommitdiffhomepage
path: root/drive
diff options
context:
space:
mode:
authorPercy Wegmann <percy@tailscale.com>2025-12-10 12:46:34 -0600
committerPercy Wegmann <percy@tailscale.com>2025-12-10 12:46:34 -0600
commitb6ac2220be84ae9aefd7e8ec7634a3ec6d2a36f2 (patch)
tree19f2f4d087544d4ca21a415baec2d10ffcd5a47c /drive
parentd349370e5500e6f583a15e38ad945199e5e11ea1 (diff)
downloadtailscale-percy/corp35008.tar.xz
tailscale-percy/corp35008.zip
Try to get rid of tstest.Clockpercy/corp35008
Signed-off-by: Percy Wegmann <percy@tailscale.com>
Diffstat (limited to 'drive')
-rw-r--r--drive/driveimpl/dirfs/dirfs_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/drive/driveimpl/dirfs/dirfs_test.go b/drive/driveimpl/dirfs/dirfs_test.go
index 4d83765d9..00534a997 100644
--- a/drive/driveimpl/dirfs/dirfs_test.go
+++ b/drive/driveimpl/dirfs/dirfs_test.go
@@ -16,7 +16,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/tailscale/xnet/webdav"
"tailscale.com/drive/driveimpl/shared"
- "tailscale.com/tstest"
+ "tailscale.com/tstime"
)
func TestStat(t *testing.T) {
@@ -276,7 +276,7 @@ func TestRename(t *testing.T) {
}
}
-func createFileSystem(t *testing.T) (webdav.FileSystem, string, string, *tstest.Clock) {
+func createFileSystem(t *testing.T) (webdav.FileSystem, string, string, tstime.Clock) {
s1, dir1 := startRemote(t)
s2, dir2 := startRemote(t)
@@ -301,7 +301,7 @@ func createFileSystem(t *testing.T) (webdav.FileSystem, string, string, *tstest.
t.Fatal(err)
}
- clock := tstest.NewClock(tstest.ClockOpts{Start: time.Now()})
+ clock := tstime.StdClock{}
fs := &FS{
Clock: clock,
StaticRoot: "domain",