ipc/full_test: Make ipc test work on 32 bit go.
Change-Id: I38cbebf8980e2e29fc80ff7da51c1c6bb2088424
diff --git a/profiles/internal/ipc/full_test.go b/profiles/internal/ipc/full_test.go
index bef9dd3..bb39bdb 100644
--- a/profiles/internal/ipc/full_test.go
+++ b/profiles/internal/ipc/full_test.go
@@ -56,10 +56,10 @@
type fakeClock struct {
sync.Mutex
- time int
+ time int64
}
-func (c *fakeClock) Now() int {
+func (c *fakeClock) Now() int64 {
c.Lock()
defer c.Unlock()
return c.time
@@ -67,7 +67,7 @@
func (c *fakeClock) Advance(steps uint) {
c.Lock()
- c.time += int(steps)
+ c.time += int64(steps)
c.Unlock()
}
@@ -2012,7 +2012,7 @@
func init() {
security.RegisterCaveatValidator(fakeTimeCaveat, func(_ security.Call, t int64) error {
- if now := clock.Now(); now > int(t) {
+ if now := clock.Now(); now > t {
return fmt.Errorf("fakeTimeCaveat expired: now=%d > then=%d", now, t)
}
return nil