File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,10 @@ public class DatabaseNodeServiceTests extends ESTestCase {
125125
126126 @ Before
127127 public void setup () throws IOException {
128+ // cover for multi-project enable/disabled
128129 boolean multiProject = randomBoolean ();
129130 projectId = multiProject ? randomProjectIdOrDefault () : ProjectId .DEFAULT ;
130131 projectResolver = multiProject ? TestProjectResolvers .singleProject (projectId ) : TestProjectResolvers .DEFAULT_PROJECT_ONLY ;
131- projectId = randomProjectIdOrDefault ();
132132 final Path geoIpConfigDir = createTempDir ();
133133 GeoIpCache cache = new GeoIpCache (1000 );
134134 ConfigDatabases configDatabases = new ConfigDatabases (geoIpConfigDir , cache );
Original file line number Diff line number Diff line change @@ -74,9 +74,11 @@ public class GeoIpProcessorFactoryTests extends ESTestCase {
7474
7575 @ Before
7676 public void loadDatabaseReaders () throws IOException {
77+ // cover for multi-project enable/disabled
7778 boolean multiProject = randomBoolean ();
7879 projectId = multiProject ? randomProjectIdOrDefault () : ProjectId .DEFAULT ;
7980 projectResolver = multiProject ? TestProjectResolvers .singleProject (projectId ) : TestProjectResolvers .DEFAULT_PROJECT_ONLY ;
81+
8082 final Path configDir = createTempDir ();
8183 geoIpConfigDir = configDir .resolve ("ingest-geoip" );
8284 Files .createDirectories (geoIpConfigDir );
You can’t perform that action at this time.
0 commit comments