commit
1f6cde899f
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue