Skip to content

Commit a5cf460

Browse files
authored
Merge pull request #46 from tgodzik/fix-compare
bugfix: Compare json instead of the entire collection
2 parents 3462993 + a22ee27 commit a5cf460

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bsp-testkit/client/TestClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ class TestClient(
156156
test(timeout) { session, _ ->
157157
session.client.clearDiagnostics()
158158
val result = session.server.buildTargetCompile(transformedParams).await()
159-
assertIterableEquals(expectedDiagnostics, session.client.publishDiagnosticsNotifications)
159+
expectedDiagnostics.zip(session.client.publishDiagnosticsNotifications).forEach{
160+
assertJsonEquals(it.first, it.second)
161+
}
160162
assertJsonEquals(expectedResult, result)
161163
}
162164
}

0 commit comments

Comments
 (0)