fix typos

pull/14770/head
Steven Powell 2022-08-09 14:55:24 -07:00
parent 3d3214275a
commit dabe774760
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ func (api *LocalClient) Create(h *host.Host) error {
{
"bootstrapping certificates",
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.
lockErr := api.flock.LockWithTimeout(time.Second * 5)
if lockErr != nil {

View File

@ -134,7 +134,7 @@ func TestTranslationFilesValid(t *testing.T) {
func distinctVariables(line string) []string {
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)
distinctMap := make(map[string]bool)