Skip to content

Commit

Permalink
Fixed TestExistingClusterDefinition test
Browse files Browse the repository at this point in the history
  • Loading branch information
pinebit committed Jan 29, 2024
1 parent 13ac611 commit 4054aef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/createdkg_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ func TestExistingClusterDefinition(t *testing.T) {
enrArg := fmt.Sprintf("--operator-enrs=%s", strings.Join(enrs, ","))
feeRecipientArg := fmt.Sprintf("--fee-recipient-addresses=%s", validEthAddr)
withdrawalArg := fmt.Sprintf("--withdrawal-addresses=%s", validEthAddr)
outputDirArg := fmt.Sprintf("--output-dir=%s", charonDir)

cmd := newCreateCmd(newCreateDKGCmd(runCreateDKG))
cmd.SetArgs([]string{"dkg", enrArg, feeRecipientArg, withdrawalArg})
cmd.SetArgs([]string{"dkg", enrArg, feeRecipientArg, withdrawalArg, outputDirArg})

require.EqualError(t, cmd.Execute(), "existing cluster-definition.json found. Try again after deleting it")
}
Expand Down

0 comments on commit 4054aef

Please sign in to comment.