From 21096c16a21fbf795eb42555208a2f4dcfeb11b5 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 2 Sep 2024 17:06:00 +0100 Subject: [PATCH] refactor: update go version and refactor code as needed --- cmd/tuple/changes_test.go | 8 ++++---- go.mod | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/tuple/changes_test.go b/cmd/tuple/changes_test.go index fb8e108..6dbfbff 100644 --- a/cmd/tuple/changes_test.go +++ b/cmd/tuple/changes_test.go @@ -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{ @@ -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{ @@ -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{ @@ -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{ diff --git a/go.mod b/go.mod index abbc176..3605636 100644 --- a/go.mod +++ b/go.mod @@ -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