Skip to content

Commit ea3f4f5

Browse files
committed
Fixed incorrect equality check on itself
1 parent a975819 commit ea3f4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/core-util/src/test/java/ai/wanaku/core/util/IndexHelperTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void testLoadResourcesIndex() throws Exception {
6161
List<ResourceReference> loadedResourceReferences = IndexHelper.loadResourcesIndex(indexFile);
6262

6363
// Verify that the loaded resources match the original ones
64-
assertEquals(loadedResourceReferences.size(), loadedResourceReferences.size());
64+
assertEquals(RESOURCE_REFERENCES.size(), loadedResourceReferences.size());
6565
for (int i = 0; i < loadedResourceReferences.size(); i++) {
6666
ResourceReference expected = RESOURCE_REFERENCES.get(i);
6767
ResourceReference actual = loadedResourceReferences.get(i);
@@ -107,7 +107,7 @@ public void testLoadToolsIndex() throws Exception {
107107
List<ToolReference> loadedToolsReferences = IndexHelper.loadToolsIndex(indexFile);
108108

109109
// Verify that the loaded resources match the original ones
110-
assertEquals(loadedToolsReferences.size(), loadedToolsReferences.size());
110+
assertEquals(TOOL_REFERENCES.size(), loadedToolsReferences.size());
111111
for (int i = 0; i < loadedToolsReferences.size(); i++) {
112112
ToolReference expected = TOOL_REFERENCES.get(i);
113113
ToolReference actual = loadedToolsReferences.get(i);

0 commit comments

Comments
 (0)