mirror of https://github.com/k3s-io/k3s
Append newline to the "deleted context ... " and "deleted cluster ..." message
parent
44b684ad53
commit
846cd2d66a
|
@ -67,7 +67,7 @@ func runDeleteCluster(out io.Writer, configAccess clientcmd.ConfigAccess, cmd *c
|
|||
return err
|
||||
}
|
||||
|
||||
fmt.Fprintf(out, "deleted cluster %s from %s", name, configFile)
|
||||
fmt.Fprintf(out, "deleted cluster %s from %s\n", name, configFile)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ func TestDeleteCluster(t *testing.T) {
|
|||
config: conf,
|
||||
clusterToDelete: "minikube",
|
||||
expectedClusters: []string{"otherkube"},
|
||||
expectedOut: "deleted cluster minikube from %s",
|
||||
expectedOut: "deleted cluster minikube from %s\n",
|
||||
}
|
||||
|
||||
test.run(t)
|
||||
|
|
|
@ -67,7 +67,7 @@ func runDeleteContext(out io.Writer, configAccess clientcmd.ConfigAccess, cmd *c
|
|||
return err
|
||||
}
|
||||
|
||||
fmt.Fprintf(out, "deleted context %s from %s", name, configFile)
|
||||
fmt.Fprintf(out, "deleted context %s from %s\n", name, configFile)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ func TestDeleteContext(t *testing.T) {
|
|||
config: conf,
|
||||
contextToDelete: "minikube",
|
||||
expectedContexts: []string{"otherkube"},
|
||||
expectedOut: "deleted context minikube from %s",
|
||||
expectedOut: "deleted context minikube from %s\n",
|
||||
}
|
||||
|
||||
test.run(t)
|
||||
|
|
Loading…
Reference in New Issue