Skip to content

Commit

Permalink
Fixing DAG test
Browse files Browse the repository at this point in the history
Signed-off-by: Lazar Cvetković <[email protected]>
  • Loading branch information
cvetkovic committed Nov 15, 2024
1 parent 65e5673 commit 1cf2684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/driver/trace_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ func TestDAGInvocation(t *testing.T) {

announceDone.Add(1)
testDriver.invokeFunction(metadata, 0)
if !(successCount == 4 && failureCount == 0) {
t.Error("The DAG invocation has failed.")
if !(successCount == 1 && failureCount == 0) { // not 4 invocations, since a workflow is considered as 1 invocation
t.Error("Number of successful and failed invocations not as expected.")
}
for i := 0; i < functionsToInvoke; i++ {
record := <-invocationRecordOutputChannel
Expand Down

0 comments on commit 1cf2684

Please sign in to comment.