fix typos
parent
3d3214275a
commit
dabe774760
|
@ -187,7 +187,7 @@ func (api *LocalClient) Create(h *host.Host) error {
|
||||||
{
|
{
|
||||||
"bootstrapping certificates",
|
"bootstrapping certificates",
|
||||||
func() error {
|
func() error {
|
||||||
// Lock is needed to avoid race conditiion in parallel Docker-Env test because issue #10107.
|
// Lock is needed to avoid race condition in parallel Docker-Env test because issue #10107.
|
||||||
// CA cert and client cert should be generated atomically, otherwise might cause bad certificate error.
|
// CA cert and client cert should be generated atomically, otherwise might cause bad certificate error.
|
||||||
lockErr := api.flock.LockWithTimeout(time.Second * 5)
|
lockErr := api.flock.LockWithTimeout(time.Second * 5)
|
||||||
if lockErr != nil {
|
if lockErr != nil {
|
||||||
|
|
|
@ -134,7 +134,7 @@ func TestTranslationFilesValid(t *testing.T) {
|
||||||
func distinctVariables(line string) []string {
|
func distinctVariables(line string) []string {
|
||||||
re := regexp.MustCompile(`{{\..+?}}`)
|
re := regexp.MustCompile(`{{\..+?}}`)
|
||||||
|
|
||||||
// get all the variables from the string (possiible duplicates)
|
// get all the variables from the string (possible duplicates)
|
||||||
variables := re.FindAllString(line, -1)
|
variables := re.FindAllString(line, -1)
|
||||||
distinctMap := make(map[string]bool)
|
distinctMap := make(map[string]bool)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue