Skip to content

Commit

Permalink
Update dsl_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying-peng committed Jul 9, 2024
1 parent 4085816 commit 01444c7
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions constructor/dsl/dsl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,36 +176,36 @@ func TestParse(t *testing.T) {
},
},
},
{
Name: string(job.CreateAccount),
Concurrency: job.ReservedWorkflowConcurrency,
Scenarios: []*job.Scenario{
{
Name: "create_account",
Actions: []*job.Action{
{
Type: job.SetVariable,
Input: `{"network":"Ropsten", "blockchain":"Ethereum"}`,
OutputPath: "network",
},
{
Type: job.GenerateKey,
Input: `{"curve_type": "secp256k1"}`,
OutputPath: "key",
},
{
Type: job.Derive,
Input: `{"network_identifier": {{network}},"public_key": {{key.public_key}}}`,
OutputPath: "account",
},
{
Type: job.SaveAccount,
Input: `{"account_identifier": {{account.account_identifier}},"keypair": {{key}}}`,
},
},
},
},
},
// {
// Name: string(job.CreateAccount),
// Concurrency: job.ReservedWorkflowConcurrency,
// Scenarios: []*job.Scenario{
// {
// Name: "create_account",
// Actions: []*job.Action{
// {
// Type: job.SetVariable,
// Input: `{"network":"Ropsten", "blockchain":"Ethereum"}`,
// OutputPath: "network",
// },
// {
// Type: job.GenerateKey,
// Input: `{"curve_type": "secp256k1"}`,
// OutputPath: "key",
// },
// {
// Type: job.Derive,
// Input: `{"network_identifier": {{network}},"public_key": {{key.public_key}}}`,
// OutputPath: "account",
// },
// {
// Type: job.SaveAccount,
// Input: `{"account_identifier": {{account.account_identifier}},"keypair": {{key}}}`,
// },
// },
// },
// },
// },
},
},
"workflow error: missing concurrency": {
Expand Down

0 comments on commit 01444c7

Please sign in to comment.