"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "flow-tests/test-npm-only-features/test-npm-performance-regression/src/test/java/com/vaadin/flow/testnpmonlyfeatures/performanceregression/StartupPerformanceIT.java" between
vaadin-flow-4.0.5.tar.gz and vaadin-flow-4.0.6.tar.gz

About: Vaadin flow is a Java framework binding Vaadin web components to Java.

StartupPerformanceIT.java  (vaadin-flow-4.0.5):StartupPerformanceIT.java  (vaadin-flow-4.0.6)
skipping to change at line 58 skipping to change at line 58
int npmInstallTime = measureLogEntryTimeDistance( int npmInstallTime = measureLogEntryTimeDistance(
"- Running `pnpm install`", "- Running `pnpm install`",
"- Frontend dependencies resolved successfully", false); "- Frontend dependencies resolved successfully", false);
int startupTimeWithoutNpmInstallTime = startupTime - npmInstallTime; int startupTimeWithoutNpmInstallTime = startupTime - npmInstallTime;
// https://github.com/vaadin/flow/issues/7596 // https://github.com/vaadin/flow/issues/7596
final int thresholdMs = Boolean.getBoolean( final int thresholdMs = Boolean.getBoolean(
System.getProperty("vaadin.useDeprecatedV14Bootstrapping")) System.getProperty("vaadin.useDeprecatedV14Bootstrapping"))
? 5500 ? 5500
: 10500; : 10700;
Assert.assertTrue( Assert.assertTrue(
String.format("startup time expected <= %d but was %d", String.format("startup time expected <= %d but was %d",
thresholdMs, startupTimeWithoutNpmInstallTime), thresholdMs, startupTimeWithoutNpmInstallTime),
startupTimeWithoutNpmInstallTime <= thresholdMs); startupTimeWithoutNpmInstallTime <= thresholdMs);
} }
private int measureLogEntryTimeDistance(String startFragment, private int measureLogEntryTimeDistance(String startFragment,
String endFragment, boolean failIfNotFound) { String endFragment, boolean failIfNotFound) {
Pattern startPattern = createPattern(startFragment); Pattern startPattern = createPattern(startFragment);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)