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

improve integration test duration #3

Open
jacksitlab opened this issue Jan 4, 2021 · 0 comments
Open

improve integration test duration #3

jacksitlab opened this issue Jan 4, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacksitlab
Copy link
Collaborator

jacksitlab commented Jan 4, 2021

Add a globals class which can be included by all transportpce subprojects (at least those with manual delays) and define these delay values there and so replace them with the variable values.

They should be the same as before, but overridable by env var

Maybe transportpce/common is the best location for this

Example

package org.opendaylight.transportpce.common;

public class Globals {

    public static int SLEEP_10000 = getEnvOrDefault(SLEEP_10000,10000);
}

private static int getEnvOrDefault(String envVar, int def) {
...
}

to find all sleep commands in the transportpce code

grep "Thread.sleep(" $(find -name *.java) | grep -v target 
@jacksitlab jacksitlab added the enhancement New feature or request label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants