You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…4716)
* Properly close resources used by WatchFileManagerTest
* Create WatchService without try-with-resources
The WatchService was being prematurely auto-closed, resulting in ClosedWatchService exceptions
* Restructure WatchFileManagerTest.testWatchFile to assert the file change event is detected
* Load properties file prior to creating FileWriter in WatchFileManagerTest
This change ensures the properties in tempConfigFile are loaded into the properties object before the tempConfigFile is cleared by creating the new FileWriter
* Verify onChange is called at least once
Depending on when the WatchService begins monitoring for file changes, it is possible that creating the new FileWriter, which clears the provided file, will trigger an onChange call, in addition to the onChange call triggered by properties.store().
* Close WatchService in WatchFileTask.shutdown()
Search before asking
Environment
Windows
EventMesh version
master
What happened
Unit test failed.
How to reproduce
Execute the
test
task of theeventmesh-common
module in the Gradle sidebar of IDEA.Debug logs
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: