Skip to content

Commit 46fde46

Browse files
committed
lint
1 parent d557ca5 commit 46fde46

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

internal/services/container/container_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func isContainerPresent(tt *acctest.TestTools, n string) resource.TestCheckFunc
575575
func isContainerDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
576576
return func(state *terraform.State) error {
577577
for _, rs := range state.RootModule().Resources {
578-
if rs.Type != "scaleway_container_namespace" { //nolint:goconst
578+
if rs.Type != "scaleway_container_namespace" {
579579
continue
580580
}
581581

internal/services/container/namespace_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/scaleway/terraform-provider-scaleway/v2/internal/services/registry"
1515
)
1616

17+
const containerNamespaceResource = "scaleway_container_namespace"
18+
1719
func TestAccNamespace_Basic(t *testing.T) {
1820
tt := acctest.NewTestTools(t)
1921
defer tt.Cleanup()
@@ -313,7 +315,7 @@ func isNamespacePresent(tt *acctest.TestTools, n string) resource.TestCheckFunc
313315
func isNamespaceDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
314316
return func(state *terraform.State) error {
315317
for _, rs := range state.RootModule().Resources {
316-
if rs.Type != "scaleway_container_namespace" {
318+
if rs.Type != containerNamespaceResource {
317319
continue
318320
}
319321

@@ -343,7 +345,7 @@ func isNamespaceDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
343345
func isRegistryDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
344346
return func(state *terraform.State) error {
345347
for _, rs := range state.RootModule().Resources {
346-
if rs.Type != "scaleway_container_namespace" {
348+
if rs.Type != containerNamespaceResource {
347349
continue
348350
}
349351

0 commit comments

Comments
 (0)