X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a95f899d7ac84f29b3d019aa410d265bb40833e5..005cb811d937fe52cee11d76484252ed7167f9a8:/services/crunch-run/logging_test.go?ds=sidebyside diff --git a/services/crunch-run/logging_test.go b/services/crunch-run/logging_test.go index bb3123a102..ceb8ca87b0 100644 --- a/services/crunch-run/logging_test.go +++ b/services/crunch-run/logging_test.go @@ -16,7 +16,11 @@ type TestTimestamper struct { func (this *TestTimestamper) Timestamp(t time.Time) string { this.count += 1 - return fmt.Sprintf("2015-12-29T15:51:45.%09dZ", this.count) + t, err := time.ParseInLocation(time.RFC3339Nano, fmt.Sprintf("2015-12-29T15:51:45.%09dZ", this.count), t.Location()) + if err != nil { + panic(err) + } + return RFC3339Timestamp(t) } // Gocheck boilerplate