Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it: tighten up polling intervals #1036

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ public static ConcordRule configure() {
.streamAgentLogs(true)
.sharedContainerDir(sharedDir)
.useLocalMavenRepository(true)
.extraConfigurationSupplier(() -> "concord-agent { prefork { enabled = true } }");
.extraConfigurationSupplier(() -> """
concord-agent {
dependencyResolveTimeout = "5 seconds"
logMaxDelay = "250 milliseconds"
pollInterval = "250 milliseconds"
prefork {
enabled = true
}
}
""");

boolean localMode = Boolean.parseBoolean(System.getProperty("it.local.mode"));
if (localMode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class CryptoIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'crypto' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
public class FormIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* A straightforward single form process.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class ImportsIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.extraConfigurationSupplier(() -> "concord-server { imports { disabledProcessors = [] } }\n" +
"concord-agent { imports { disabledProcessors = [] } }");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class JsonStoreIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'jsonStore' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class KvTaskIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'kv' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class NodeRosterIT extends AbstractTest {

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure();
public static final ConcordRule concord = ConcordConfiguration.configure();

/**
* Tests various methods of the 'noderoster' plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
public class SmtpIT extends AbstractTest {

@RegisterExtension
GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP));
public static final GreenMailExtension mailServer = new GreenMailExtension(new ServerSetup(0, "0.0.0.0", ServerSetup.PROTOCOL_SMTP))
.withPerMethodLifecycle(false);

@RegisterExtension
public final ConcordRule concord = ConcordConfiguration.configure()
public static final ConcordRule concord = ConcordConfiguration.configure()
.containerListener(new ContainerListener() {
@Override
public void beforeStart(ContainerType type) {
Expand Down
4 changes: 4 additions & 0 deletions it/server/src/test/resources/agent.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
concord-agent {

dependencyResolveTimeout = "5 seconds"
logMaxDelay = "250 milliseconds"
pollInterval = "250 milliseconds"

prefork {
enabled = true
}
Expand Down
Loading