Skip to content

Commit 9f45b6f

Browse files
committed
correct agent pool integration test
1 parent 3ca0ab1 commit 9f45b6f

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
@@ -22,8 +22,6 @@ func TestAgentPoolsList(t *testing.T) {
2222

2323
agentPool, agentPoolCleanup := createAgentPool(t, client, orgTest)
2424
defer agentPoolCleanup()
25-
agentPool2, agentPoolCleanup2 := createAgentPool(t, client, orgTest)
26-
defer agentPoolCleanup2()
2725

2826
t.Run("without list options", func(t *testing.T) {
2927
pools, err := client.AgentPools.List(ctx, orgTest.Name, nil)
@@ -67,6 +65,9 @@ func TestAgentPoolsList(t *testing.T) {
6765
assert.Equal(t, 1, pools.TotalCount)
6866
})
6967
t.Run("with sorting", func(t *testing.T) {
68+
agentPool2, agentPoolCleanup2 := createAgentPool(t, client, orgTest)
69+
defer agentPoolCleanup2()
70+
7071
pools, err := client.AgentPools.List(ctx, orgTest.Name, &AgentPoolListOptions{
7172
Sort: "created-at",
7273
})

0 commit comments

Comments
 (0)