Index: service/datastore/properties_test.go |
diff --git a/service/datastore/properties_test.go b/service/datastore/properties_test.go |
index 615ac1b29438712949e57c79cc38eb6399f784a9..c535229306a6d9c2f65a8e61544b047b15c8cdaa 100644 |
--- a/service/datastore/properties_test.go |
+++ b/service/datastore/properties_test.go |
@@ -94,7 +94,11 @@ func TestProperties(t *testing.T) { |
}) |
Convey("invalid time", func() { |
pv := Property{} |
- err := pv.SetValue(time.Now(), ShouldIndex) |
+ loc, err := time.LoadLocation("America/Los_Angeles") |
+ So(err, ShouldBeNil) |
+ t := time.Date(1970, 1, 1, 0, 0, 0, 0, loc) |
+ |
+ err = pv.SetValue(t, ShouldIndex) |
So(err.Error(), ShouldContainSubstring, "time value has wrong Location") |
err = pv.SetValue(time.Unix(math.MaxInt64, 0).UTC(), ShouldIndex) |