Skip to content

Commit 3a985b2

Browse files
Test case updated as for logic update for sbt job run()
1 parent 58a10e3 commit 3a985b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/resolution/pm/sbt/job_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func TestRunCmdOutputErr(t *testing.T) {
106106
assert.True(t, error.HasError())
107107

108108
allErrors := error.GetAll()
109-
assert.Len(t, allErrors, 2)
109+
assert.Len(t, allErrors, 1)
110110
assert.Contains(t, allErrors[0].Error(), "executable file not found")
111111
}
112112

@@ -124,10 +124,9 @@ func TestRunCmdOutputErrNoOutput(t *testing.T) {
124124
j.Run()
125125

126126
errs := j.Errors().GetAll()
127-
assert.Len(t, errs, 2)
127+
assert.Len(t, errs, 1)
128128

129129
assert.Contains(t, errs[0].Error(), "unknown command")
130-
assert.Contains(t, errs[1].Error(), "exec: no command")
131130
}
132131

133132
func TestRun(t *testing.T) {

0 commit comments

Comments
 (0)