Skip to content

Commit 7a3534e

Browse files
committed
correct agent pool integration test
1 parent f850519 commit 7a3534e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent_pool_integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ func TestAgentPoolsList(t *testing.T) {
2020

2121
agentPool, agentPoolCleanup := createAgentPool(t, client, orgTest)
2222
t.Cleanup(agentPoolCleanup)
23-
agentPool2, agentPoolCleanup2 := createAgentPool(t, client, orgTest)
24-
defer agentPoolCleanup2()
2523

2624
t.Run("without list options", func(t *testing.T) {
2725
pools, err := client.AgentPools.List(ctx, orgTest.Name, nil)
@@ -65,6 +63,9 @@ func TestAgentPoolsList(t *testing.T) {
6563
assert.Equal(t, 1, pools.TotalCount)
6664
})
6765
t.Run("with sorting", func(t *testing.T) {
66+
agentPool2, agentPoolCleanup2 := createAgentPool(t, client, orgTest)
67+
t.Cleanup(agentPoolCleanup2)
68+
6869
pools, err := client.AgentPools.List(ctx, orgTest.Name, &AgentPoolListOptions{
6970
Sort: "created-at",
7071
})

0 commit comments

Comments
 (0)