Skip to content

Commit ee83358

Browse files
committed
Fix the tests
1 parent dee9634 commit ee83358

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitlab/resource_gitlab_project_access_token_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func TestAccGitlabProjectAccessToken_basic(t *testing.T) {
1515
var pat testAccGitlabProjectAccessTokenWrapper
1616
rInt := acctest.RandInt()
1717

18+
ctx := testAccGitlabProjectStart(t)
19+
ctx.finish()
20+
1821
resource.Test(t, resource.TestCase{
1922
PreCheck: func() { testAccPreCheck(t) },
2023
Providers: testAccProviders,
@@ -49,7 +52,7 @@ func TestAccGitlabProjectAccessToken_basic(t *testing.T) {
4952
Config: testAccGitlabProjectAccessTokenUpdateConfigWithCICDvar(rInt),
5053
Check: resource.ComposeTestCheckFunc(
5154
testAccCheckGitlabProjectAccessTokenExists("gitlab_project_access_token.bar", &pat),
52-
testAccCheckGitlabProjectVariableExists(testAccProvider.Meta().(*gitlab.Client), "gitlab_project_variable.var"),
55+
testAccCheckGitlabProjectVariableExists(ctx.client, "gitlab_project_variable.var"),
5356
testAccCheckGitlabProjectAccessTokenAttributes(&pat, &testAccGitlabProjectAccessTokenExpectedAttributes{
5457
name: "my new project token",
5558
scopes: map[string]bool{"read_repository": false, "api": true, "write_repository": false, "read_api": false},

0 commit comments

Comments
 (0)