Skip to content

Commit

Permalink
Apply suggestion and add AccTestPreCheck to enableFlowLogs test
Browse files Browse the repository at this point in the history
Signed-off-by: Cezary Sobczak <[email protected]>
  • Loading branch information
Cezarus27 committed Feb 27, 2025
1 parent 34b6bd2 commit 2a04446
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ func TestAccComputeSubnetwork_enableFlowLogs(t *testing.T) {
cnName := fmt.Sprintf("tf-test-%s", acctest.RandString(t, 10))
subnetworkName := fmt.Sprintf("tf-test-%s", acctest.RandString(t, 10))

resource.Test(t, resource.TestCase{
PreCheck: func() { /* precheck logic here */ },
acctest.VcrTest(t, resource.TestCase{
PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
CheckDestroy: testAccCheckComputeSubnetworkDestroyProducer(t),
Steps: []resource.TestStep{
Expand Down

0 comments on commit 2a04446

Please sign in to comment.