Skip to content

Commit 3e6dc14

Browse files
committed
fix
1 parent 8211168 commit 3e6dc14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/com/github/bazelbuild/rules_jvm_external/resolver/lockfile/V3LockFileTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public void testCalculateArtifactHashMatchesStoredHash() throws IOException {
152152

153153
Gson gson = new GsonBuilder().create();
154154
Map<String, Object> lockFileData = gson.fromJson(lockFileContent, Map.class);
155-
Map<String, Integer> storedHash = (Map<String, Integer>) lockFileData.get("__RESOLVED_ARTIFACTS_HASH");
155+
Map<String, Double> storedHash = (Map<String, Double>) lockFileData.get("__RESOLVED_ARTIFACTS_HASH");
156156

157157
Map<String, Object> dependencies = (Map<String, Object>) lockFileData.remove("dependencies");
158158
Map<String, Set<String>> convertedDeps = new TreeMap<>();
@@ -166,9 +166,9 @@ public void testCalculateArtifactHashMatchesStoredHash() throws IOException {
166166

167167
assertEquals("Hash mismatch: calculated hash does not match stored hash", storedHash.size(), calculatedHash.size());
168168

169-
for (Map.Entry<String, Integer> entry : storedHash.entrySet()) {
169+
for (Map.Entry<String, Double> entry : storedHash.entrySet()) {
170170
String key = entry.getKey();
171-
int expectedHash = entry.getValue();
171+
int expectedHash = entry.getValue().intValue();
172172
int actualHash = calculatedHash.get(key);
173173

174174
assertEquals(String.format("Hash mismatch for artifact '%s'", key), expectedHash, actualHash);

0 commit comments

Comments
 (0)