Skip to content

Commit 1a9fb1d

Browse files
committed
fix: Adjusting expected error for tests
1 parent b199d76 commit 1a9fb1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/integration_deprecated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestDeprecatedHclvalidateCommand_HclvalidateInvalidConfigPath(t *testing.T)
3030
}
3131

3232
stdout, _, err := helpers.RunTerragruntCommandWithOutput(t, fmt.Sprintf("terragrunt hclvalidate --terragrunt-working-dir %s --terragrunt-hclvalidate-json --terragrunt-hclvalidate-show-config-path", rootPath))
33-
require.NoError(t, err)
33+
require.Error(t, err)
3434

3535
var actualPaths []string
3636

test/integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func TestHclvalidateDiagnostic(t *testing.T) {
718718
}
719719

720720
stdout, _, err := helpers.RunTerragruntCommandWithOutput(t, fmt.Sprintf("terragrunt hcl validate --working-dir %s --json", rootPath))
721-
require.NoError(t, err)
721+
require.Error(t, err)
722722

723723
var actualDiags diagnostic.Diagnostics
724724

@@ -759,7 +759,7 @@ func TestHclvalidateInvalidConfigPath(t *testing.T) {
759759
}
760760

761761
stdout, _, err := helpers.RunTerragruntCommandWithOutput(t, fmt.Sprintf("terragrunt hcl validate --working-dir %s --json --show-config-path", rootPath))
762-
require.NoError(t, err)
762+
require.Error(t, err)
763763

764764
var actualPaths []string
765765

0 commit comments

Comments
 (0)