Skip to content

Commit aa733c2

Browse files
committed
Fixing tests
1 parent 8553fba commit aa733c2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

internal/provider/function_resource_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
407407
}))
408408
defer fakeServer.Close()
409409

410-
// common provider block
410+
411411
providerConfig := `
412412
provider "segment" {
413413
url = "` + fakeServer.URL + `"
@@ -418,7 +418,6 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
418418
resource.Test(t, resource.TestCase{
419419
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
420420
Steps: []resource.TestStep{
421-
// ── CREATE + READ ──────────────────────────────────────────────
422421
{
423422
Config: providerConfig + `
424423
resource "segment_function" "test" {
@@ -449,13 +448,13 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
449448
resource.TestCheckResourceAttr("segment_function.test", "settings.0.sensitive", "false"),
450449
),
451450
},
452-
// ── IMPORT ────────────────────────────────────────────────────
451+
453452
{
454453
ResourceName: "segment_function.test",
455454
ImportState: true,
456455
ImportStateVerify: true,
457456
},
458-
// ── UPDATE + READ ────────────────────────────────────────────
457+
459458
{
460459
Config: providerConfig + `
461460
resource "segment_function" "test" {
@@ -484,7 +483,7 @@ func TestAccFunctionResource_InsertSource(t *testing.T) {
484483
resource.TestCheckResourceAttr("segment_function.test", "settings.0.sensitive", "true"),
485484
),
486485
},
487-
// destroy is implicit
486+
488487
},
489488
})
490489
}

0 commit comments

Comments
 (0)