Exemple #1
0
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)
}
Exemple #2
0
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)
}