mirror of https://github.com/perkeep/perkeep.git
indextest: force timezone when testing receive
Otherwise JPEGs with EXIF can be interpretted differently. Change-Id: Ia3fe64a92d7a8f0642363d758f2d1f402f1e4a1f
This commit is contained in:
parent
76f4ff618d
commit
995a4ccb0e
|
@ -285,6 +285,10 @@ Enpn/oOOfYFa5h0AFndZd1blMvruXfdAobjVABEBAAE=
|
||||||
}
|
}
|
||||||
|
|
||||||
func Index(t *testing.T, initIdx func() *index.Index) {
|
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 := NewIndexDeps(initIdx())
|
||||||
id.Fataler = t
|
id.Fataler = t
|
||||||
defer id.DumpIndex(t)
|
defer id.DumpIndex(t)
|
||||||
|
|
Loading…
Reference in New Issue