Skip to content

Commit

Permalink
refactor: update go version and refactor code as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Sep 2, 2024
1 parent e868a51 commit 21096c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/tuple/changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestReadChangesSinglePage(t *testing.T) {
Object: "document:doc1",
}

operation := openfga.WRITE
operation := openfga.TUPLEOPERATION_WRITE
changesTime := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)

changes := []openfga.TupleChange{
Expand Down Expand Up @@ -180,7 +180,7 @@ func TestReadChangesMultiPages(t *testing.T) {
Object: "document:doc1",
}

operation1 := openfga.WRITE
operation1 := openfga.TUPLEOPERATION_WRITE
changesTime1 := time.Date(2009, time.November, 10, 22, 0, 0, 0, time.UTC)

changes1 := []openfga.TupleChange{
Expand All @@ -195,7 +195,7 @@ func TestReadChangesMultiPages(t *testing.T) {
ContinuationToken: openfga.PtrString(continuationToken),
}

operation2 := openfga.DELETE
operation2 := openfga.TUPLEOPERATION_DELETE
changesTime2 := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)

changes2 := []openfga.TupleChange{
Expand Down Expand Up @@ -278,7 +278,7 @@ func TestReadChangesMultiPagesLimit(t *testing.T) {
Object: "document:doc1",
}

operation := openfga.WRITE
operation := openfga.TUPLEOPERATION_WRITE
changesTime := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)

changes := []openfga.TupleChange{
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/openfga/cli

go 1.22.5
go 1.22.6

require (
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/hashicorp/go-multierror v1.1.1
Expand Down

0 comments on commit 21096c1

Please sign in to comment.