Skip to content

Commit 82e2e32

Browse files
fixed assertion
1 parent 947de45 commit 82e2e32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/commands/scan_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,7 +3643,7 @@ func Test_CreateScanWithExistingProjectAndAssign_Application(t *testing.T) {
36433643

36443644
func Test_CreateScanWithExistingProjectAndAssign_FailedNoApplication_NameProvided(t *testing.T) {
36453645
file := createOutputFile(t, outputFileName)
3646-
defer deleteOutputFile(file)
3646+
//defer deleteOutputFile(file)
36473647
defer logger.SetOutput(os.Stdout)
36483648

36493649
baseArgs := []string{"scan", "create", "--project-name", "MOCK", "-s", ".", "--branch", "main", "--debug"}
@@ -3655,7 +3655,7 @@ func Test_CreateScanWithExistingProjectAndAssign_FailedNoApplication_NameProvide
36553655
if err != nil {
36563656
t.Fatalf("Failed to read log file: %v", err)
36573657
}
3658-
assert.Equal(t, strings.Contains(stdoutString, "No Application Name provided. Skipping application update"), true, "Expected output: %s", "No Application Name provided. Skipping application update")
3658+
assert.Equal(t, strings.Contains(stdoutString, "No application name provided. Skipping application update"), true, "Expected output: %s", "No application name provided. Skipping application update")
36593659
}
36603660

36613661
func Test_CreateScanWithExistingProjectAndAssign_FailedApplication_DoesNot_Exist(t *testing.T) {

0 commit comments

Comments
 (0)