Skip to content

Commit 86684d7

Browse files
author
jan
committed
improve the regression test
1 parent c4fc97b commit 86684d7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

io.sloeber.tests/src/io/sloeber/core/BuildTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,17 @@ public void issue1723() throws Exception {
892892
theTestProject.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
893893
assertNull(Shared.hasBuildErrors(theTestProject),"lib added build should succeed");
894894

895+
//open and close the project to clear the cache
896+
theTestProject.close(null);
897+
// just wait a while
898+
Thread.sleep(1000);
899+
900+
theTestProject.open(new NullProgressMonitor());
901+
895902
//There should be 1 lib in the project
903+
sloeberConf=ISloeberConfiguration.getActiveConfig(theTestProject, true);
896904
Map<IPath, IArduinoLibraryVersion> usedLibs=sloeberConf.getUsedLibraries();
897-
assertTrue(usedLibs.size()==0,"Private Lib not found");
905+
assertTrue(usedLibs.size()==1,"Private Lib not found");
898906

899907

900908
}

0 commit comments

Comments
 (0)