commit | 87a33ef83a95d30b3d3548b44655971b970a63f6 | [log] [tgz] |
---|---|---|
author | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 12 10:48:02 2023 +0100 |
committer | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 19 15:16:32 2023 +0100 |
tree | 2b79112ac9bf39d94c66d3594c12a9d3e95de7f2 | |
parent | 0d47141551d15dcf6f6d9aab070a4dfe7c85bd3a [diff] |
Add `UseLocalDisk` annotation to fix test Something changed in the gerrit-plugin-api package between versions 3.7 and 3.8, so `openRepository` was returning an `InMemoryRepository` instead of a `FileRepository`. Adding this annotation makes the method return a `FileRepository` and fixes this test. Oddly this happened in CI and we couldn't recreate it locally. Change-Id: Idf1ef771b07df5febead21cd69bc00d8942b1536
diff --git a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/GerritTestDaemon.scala b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/GerritTestDaemon.scala index 2feb82d..dd79434 100644 --- a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/GerritTestDaemon.scala +++ b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/GerritTestDaemon.scala
@@ -140,6 +140,7 @@ } } +@UseLocalDisk @TestPlugin( name = "analytics", sysModule = "com.googlesource.gerrit.plugins.analytics.test.GerritTestDaemon$TestModule"