Skip to content

Commit 65865a1

Browse files
committed
Fix test for deprecated build coverage regex attribute for GitLab 15.0
1 parent 3db79be commit 65865a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/resource_gitlab_project_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ func TestAccGitlabProject_DeprecatedBuildCoverageRegex(t *testing.T) {
11311131
CheckDestroy: testAccCheckGitlabProjectDestroy,
11321132
Steps: []resource.TestStep{
11331133
{
1134-
SkipFunc: isGitLabVersionLessThan(context.Background(), testGitlabClient, "15.0"),
1134+
SkipFunc: isGitLabVersionAtLeast(context.Background(), testGitlabClient, "15.0"),
11351135
Config: fmt.Sprintf(`
11361136
resource "gitlab_project" "this" {
11371137
name = "foo-%d"
@@ -1144,7 +1144,7 @@ func TestAccGitlabProject_DeprecatedBuildCoverageRegex(t *testing.T) {
11441144
),
11451145
},
11461146
{
1147-
SkipFunc: isGitLabVersionLessThan(context.Background(), testGitlabClient, "15.0"),
1147+
SkipFunc: isGitLabVersionAtLeast(context.Background(), testGitlabClient, "15.0"),
11481148
ResourceName: "gitlab_project.this",
11491149
ImportState: true,
11501150
ImportStateVerify: true,

0 commit comments

Comments
 (0)