Skip to content

Commit f49e87f

Browse files
committed
Minor test cleanup
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 1ab71d2 commit f49e87f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

github/data_source_github_organization_ip_allow_list_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,18 @@ import (
99
func TestAccGithubOrganizationIpAllowListDataSource(t *testing.T) {
1010
t.Run("queries without error", func(t *testing.T) {
1111
config := `
12-
1312
data "github_organization_ip_allow_list" "all" {}
1413
`
1514

16-
check := resource.ComposeAggregateTestCheckFunc(
17-
resource.TestCheckResourceAttrSet("data.github_organization_ip_allow_list.all", "ip_allow_list.#"),
18-
)
19-
2015
resource.Test(t, resource.TestCase{
2116
PreCheck: func() { skipUnlessHasOrgs(t) },
2217
ProviderFactories: providerFactories,
2318
Steps: []resource.TestStep{
2419
{
2520
Config: config,
26-
Check: check,
21+
Check: resource.ComposeAggregateTestCheckFunc(
22+
resource.TestCheckResourceAttrSet("data.github_organization_ip_allow_list.all", "ip_allow_list.#"),
23+
),
2724
},
2825
},
2926
})

0 commit comments

Comments
 (0)