Skip to content

Commit cadfcdf

Browse files
committed
fix lint
1 parent 4da747a commit cadfcdf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/services/container/container_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
containerchecks "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/container/testfuncs"
1414
)
1515

16+
const namespaceResourceType = "scaleway_container_namespace"
17+
1618
func TestAccContainer_Basic(t *testing.T) {
1719
tt := acctest.NewTestTools(t)
1820
defer tt.Cleanup()
@@ -575,7 +577,7 @@ func isContainerPresent(tt *acctest.TestTools, n string) resource.TestCheckFunc
575577
func isContainerDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
576578
return func(state *terraform.State) error {
577579
for _, rs := range state.RootModule().Resources {
578-
if rs.Type != "scaleway_container_namespace" { //nolint:goconst
580+
if rs.Type != namespaceResourceType {
579581
continue
580582
}
581583

internal/services/container/namespace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func isNamespaceDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
343343
func isRegistryDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
344344
return func(state *terraform.State) error {
345345
for _, rs := range state.RootModule().Resources {
346-
if rs.Type != "scaleway_container_namespace" {
346+
if rs.Type != namespaceResourceType {
347347
continue
348348
}
349349

0 commit comments

Comments
 (0)