func (t *MountTest) SetUp(ti *TestInfo) { var err error t.ctx = ti.Ctx t.clock.SetTime(time.Date(2012, 8, 15, 22, 56, 0, 0, time.Local)) t.conn = gcsfake.NewConn(&t.clock) // Set up the temporary directory. t.dir, err = ioutil.TempDir("", "run_test") AssertEq(nil, err) }
func (t *ConnTest) SetUp(ti *TestInfo) { t.ctx = ti.Ctx t.clock.SetTime(time.Date(2012, 8, 15, 22, 56, 0, 0, time.Local)) t.conn = gcsfake.NewConn(&t.clock) }