Skip to content

Commit 710359a

Browse files
authored
Fix up slice definitions (#245)
* Fix up slices * Fix up tests
1 parent eef511b commit 710359a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

planetscale/workflows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type Workflow struct {
4444
CutoverBy *Actor `json:"cutover_by"`
4545
ReversedCutoverBy *Actor `json:"reversed_cutover_by"`
4646

47-
Streams *[]WorkflowStream `json:"streams"`
48-
Tables *[]WorkflowTable `json:"tables"`
47+
Streams []*WorkflowStream `json:"streams"`
48+
Tables []*WorkflowTable `json:"tables"`
4949
VDiff *WorkflowVDiff `json:"vdiff"`
5050
}
5151

planetscale/workflows_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ func TestWorkflows_Get(t *testing.T) {
6969
c.Assert(workflow.TargetKeyspace.Name, qt.Equals, "target-keyspace")
7070
c.Assert(workflow.Branch.Name, qt.Equals, "branch")
7171
c.Assert(workflow.VDiff.State, qt.Equals, "pending")
72-
c.Assert(len(*workflow.Streams), qt.Equals, 1)
73-
c.Assert(len(*workflow.Tables), qt.Equals, 1)
72+
c.Assert(len(workflow.Streams), qt.Equals, 1)
73+
c.Assert(len(workflow.Tables), qt.Equals, 1)
7474
}

0 commit comments

Comments
 (0)