From 67116efc35b517b5e4c0b2faa6fe58748b270d13 Mon Sep 17 00:00:00 2001 From: Dmitry Zhuravlev Date: Thu, 21 Mar 2019 17:41:59 +0300 Subject: [PATCH] git: RunConfigurationVcsIgnoreTest: create .idea directory in setUpProject This will fix possible races when ChangeListManager start checking for changes (triggered by .idea creation) but project not initialized yet. --- .../tests/git4idea/ignore/RunConfigurationVcsIgnoreTest.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/git4idea/tests/git4idea/ignore/RunConfigurationVcsIgnoreTest.kt b/plugins/git4idea/tests/git4idea/ignore/RunConfigurationVcsIgnoreTest.kt index 750f6b6ead55..b6781f5e1308 100644 --- a/plugins/git4idea/tests/git4idea/ignore/RunConfigurationVcsIgnoreTest.kt +++ b/plugins/git4idea/tests/git4idea/ignore/RunConfigurationVcsIgnoreTest.kt @@ -20,11 +20,15 @@ class RunConfigurationVcsIgnoreTest : GitSingleRepoTest() { override fun setUp() { super.setUp() - invokeAndWaitIfNeeded { saveComponentManager(project) } //will create .idea directory vcsIgnoreManager = project.service() gitIgnore = File("$projectPath/$GITIGNORE") } + override fun setUpProject() { + super.setUpProject() + invokeAndWaitIfNeeded { saveComponentManager(project) } //will create .idea directory + } + override fun setUpModule() { myModule = createMainModule() }