Fix typos

This commit is contained in:
Nils Hanke 2022-10-31 16:39:56 +01:00 committed by Nils Hanke
parent e363f03240
commit c922136cd4
2 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ func configGenerate(cmd *cobra.Command, fileHandler file.Handler, provider cloud
} }
cmd.Println("Config file written to", flags.file) cmd.Println("Config file written to", flags.file)
cmd.Println("Please fill in your CSP-specific configuration before proceeding.") cmd.Println("Please fill in your CSP-specific configuration before proceeding.")
cmd.Println("Fore more information refer to the documentation:") cmd.Println("For more information refer to the documentation:")
cmd.Println("\thttps://docs.edgeless.systems/constellation/getting-started/first-steps") cmd.Println("\thttps://docs.edgeless.systems/constellation/getting-started/first-steps")
return nil return nil

View file

@ -44,7 +44,7 @@ func TestCreate(t *testing.T) {
nameFlag string nameFlag string
stdin string stdin string
wantErr bool wantErr bool
wantAbbort bool wantAbort bool
}{ }{
"create": { "create": {
setupFs: fsWithDefaultConfig, setupFs: fsWithDefaultConfig,
@ -69,7 +69,7 @@ func TestCreate(t *testing.T) {
controllerCountFlag: intPtr(1), controllerCountFlag: intPtr(1),
workerCountFlag: intPtr(1), workerCountFlag: intPtr(1),
stdin: "no\n", stdin: "no\n",
wantAbbort: true, wantAbort: true,
}, },
"interactive error": { "interactive error": {
setupFs: fsWithDefaultConfig, setupFs: fsWithDefaultConfig,
@ -218,7 +218,7 @@ func TestCreate(t *testing.T) {
assert.Error(err) assert.Error(err)
} else { } else {
assert.NoError(err) assert.NoError(err)
if tc.wantAbbort { if tc.wantAbort {
assert.False(tc.creator.createCalled) assert.False(tc.creator.createCalled)
} else { } else {
assert.True(tc.creator.createCalled) assert.True(tc.creator.createCalled)