Skip to content

Commit

Permalink
Bugfix for dir attribute update: Allow 0 in NSec values (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelGel authored Nov 25, 2020
1 parent 2995bb3 commit d9f01f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/dataplane/test/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions pkg/dataplane/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

//
Expand Down

0 comments on commit d9f01f2

Please sign in to comment.