Skip to content

Commit 1e91f60

Browse files
committed
minor
1 parent c069583 commit 1e91f60

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/DatabaseNodeServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpProcessorFactoryTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)