Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsa0x committed Dec 17, 2024
1 parent f0bfb61 commit 6bfae8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion internal/command/test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,19 @@ func TestTest_Runs(t *testing.T) {
code: 0,
},
"mocking": {
expectedOut: []string{"6 passed, 0 failed."},
expectedOut: []string{"7 passed, 0 failed."},
code: 0,
},
"mocking-invalid": {
expectedErr: []string{"Invalid outputs attribute"},
initCode: 1,
},
"mocking-error": {
expectedErr: []string{"Unknown condition value",
"test_resource.primary[0].id",
},
code: 1,
},
"dangling_data_block": {
expectedOut: []string{"2 passed, 0 failed."},
code: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ run "test" {
command = plan

assert {
condition = test_resource.primary[0].id != "bbbb"
condition = test_resource.primary[0].id == "bbbb"
error_message = "plan should not have the overridden value"
}

Expand Down

0 comments on commit 6bfae8e

Please sign in to comment.