diff --git a/pkg/dataplane/test/sync_test.go b/pkg/dataplane/test/sync_test.go index a73321e..a0af81c 100644 --- a/pkg/dataplane/test/sync_test.go +++ b/pkg/dataplane/test/sync_test.go @@ -227,7 +227,7 @@ func (suite *syncContainerTestSuite) TestSetDirsAttrs() { updateObjectInput := &v3io.UpdateObjectInput{} updateObjectInput.Path = fmt.Sprintf("%sdir-test/", path) layout := "2006-01-02T15:04:05.00Z" - atime, err := time.Parse(layout, "2020-11-22T19:27:33.49Z") + atime, err := time.Parse(layout, "2020-11-22T19:27:33.00Z") suite.Require().NoError(err) ctime, err := time.Parse(layout, "2020-09-20T15:10:35.08Z") suite.Require().NoError(err) diff --git a/pkg/dataplane/types.go b/pkg/dataplane/types.go index 10bd4bc..73c210a 100644 --- a/pkg/dataplane/types.go +++ b/pkg/dataplane/types.go @@ -212,11 +212,11 @@ type DirAttributes struct { UID int `json:"uid"` GID int `json:"gid"` AtimeSec int `json:"atime.sec,omitempty"` - AtimeNSec int `json:"atime.nsec,omitempty"` + AtimeNSec int `json:"atime.nsec"` CtimeSec int `json:"ctime.sec,omitempty"` - CtimeNSec int `json:"ctime.nsec,omitempty"` + CtimeNSec int `json:"ctime.nsec"` MtimeSec int `json:"mtime.sec,omitempty"` - MtimeNSec int `json:"mtime.nsec,omitempty"` + MtimeNSec int `json:"mtime.nsec"` } //