-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f606d0c
commit 5fa4d9b
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,8 @@ import ( | |
|
||
const testWorkflowId = "<workflow-id>" | ||
const hardcodedWorkflow = ` | ||
name: "hcwf" | ||
triggers: | ||
- id: "[email protected]" | ||
config: | ||
|
@@ -165,12 +167,14 @@ func newTestEngine(t *testing.T, reg *coreCap.Registry, sdkSpec sdk.WorkflowSpec | |
|
||
reg.SetLocalRegistry(&testConfigProvider{}) | ||
cfg := Config{ | ||
WorkflowID: testWorkflowId, | ||
Lggr: logger.TestLogger(t), | ||
Registry: reg, | ||
Workflow: sdkSpec, | ||
maxRetries: 1, | ||
retryMs: 100, | ||
WorkflowID: testWorkflowId, | ||
WorkflowName: sdkSpec.Name, | ||
WorkflowOwner: sdkSpec.Owner, | ||
Lggr: logger.TestLogger(t), | ||
Registry: reg, | ||
Workflow: sdkSpec, | ||
maxRetries: 1, | ||
retryMs: 100, | ||
afterInit: func(success bool) { | ||
if success { | ||
close(initSuccessful) | ||
|