maru icon indicating copy to clipboard operation
maru copied to clipboard

[Bug] Does not work for workflow with multiple args

Open Irvenae opened this issue 2 years ago • 1 comments

What are you really trying to do?

Trying to run a TS workflow driven by the test bench. The TS workflow has multiple arguments.

Describe the bug

I looked into the code and it uses interface{} while in the executeWorkflow function it assumes ...interface{} When you make a config with args: [{"test":123}, {"test":123}] the workflow will be ran with 1 argument containing this array instead of the array. The args should be unpacked when input is an array.

I am not a Go developer so I don't know how to modify this best.

(Probably I will just port this code to TS anyway for easier construction / extension of the bench tests)

Irvenae avatar Feb 01 '23 13:02 Irvenae

A potential easy solution is to expect []interface{} for args. (I will try this out) EDIT: This seems to work.

Irvenae avatar Feb 01 '23 14:02 Irvenae