indextest: force timezone when testing receive

Otherwise JPEGs with EXIF can be interpretted differently.

Change-Id: Ia3fe64a92d7a8f0642363d758f2d1f402f1e4a1f
This commit is contained in:
Brad Fitzpatrick 2014-07-13 10:04:03 -07:00
parent 76f4ff618d
commit 995a4ccb0e
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ Enpn/oOOfYFa5h0AFndZd1blMvruXfdAobjVABEBAAE=
}
func Index(t *testing.T, initIdx func() *index.Index) {
oldLocal := time.Local
time.Local = time.UTC
defer func() { time.Local = oldLocal }()
id := NewIndexDeps(initIdx())
id.Fataler = t
defer id.DumpIndex(t)