From 1cd46c8dd1a92dd0ad3eeb60a763278f2e98d0b4 Mon Sep 17 00:00:00 2001 From: Zhaozhong Ni Date: Thu, 12 Jul 2018 15:07:59 -0700 Subject: sentry: wait for restore clock instead of panicing in Timekeeper. PiperOrigin-RevId: 204372296 Change-Id: If1ed9843b93039806e0c65521f30177dc8036979 --- pkg/sentry/kernel/timekeeper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/sentry/kernel/timekeeper_test.go') diff --git a/pkg/sentry/kernel/timekeeper_test.go b/pkg/sentry/kernel/timekeeper_test.go index 08bacba4f..34a5cec27 100644 --- a/pkg/sentry/kernel/timekeeper_test.go +++ b/pkg/sentry/kernel/timekeeper_test.go @@ -107,7 +107,7 @@ func TestTimekeeperMonotonicForward(t *testing.T) { } tk := stateTestClocklessTimekeeper(t) - tk.restored = true + tk.restored = make(chan struct{}) tk.saveMonotonic = 100000 tk.saveRealtime = 400000 tk.SetClocks(c) @@ -135,7 +135,7 @@ func TestTimekeeperMonotonicJumpBackwards(t *testing.T) { } tk := stateTestClocklessTimekeeper(t) - tk.restored = true + tk.restored = make(chan struct{}) tk.saveMonotonic = 100000 tk.saveRealtime = 600000 tk.SetClocks(c) -- cgit v1.2.3