Skip to content

Commit

Permalink
Cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasslash committed Feb 24, 2022
1 parent 6b56fa6 commit 5df3e72
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions task_stages_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func TestTaskStagesRead(t *testing.T) {
rTest, rTestCleanup := createRun(t, client, wkspaceTest)
defer rTestCleanup()

t.Run("without include param", func(t *testing.T) {
r, err := client.Runs.ReadWithOptions(ctx, rTest.ID, &RunReadOptions{
Include: []RunIncludeOps{RunTaskStages},
})
require.NoError(t, err)
r, err := client.Runs.ReadWithOptions(ctx, rTest.ID, &RunReadOptions{
Include: []RunIncludeOps{RunTaskStages},
})
require.NoError(t, err)

t.Run("without read options", func(t *testing.T) {
taskStage, err := client.TaskStages.Read(ctx, r.TaskStages[0].ID, nil)
require.NoError(t, err)

Expand All @@ -58,11 +58,6 @@ func TestTaskStagesRead(t *testing.T) {
})

t.Run("with include param task_results", func(t *testing.T) {
r, err := client.Runs.ReadWithOptions(ctx, rTest.ID, &RunReadOptions{
Include: []RunIncludeOps{RunTaskStages},
})
require.NoError(t, err)

taskStage, err := client.TaskStages.Read(ctx, r.TaskStages[0].ID, &TaskStageReadOptions{
Include: []TaskStageIncludeOps{TaskStageTaskResults},
})
Expand Down

0 comments on commit 5df3e72

Please sign in to comment.