Skip to content

Commit 1f0adfd

Browse files
aozherelyevavova-jb
authored andcommitted
Fix heavy tests (#1299)
<!-- Thank you for opening a pull request! Please add a brief description of the proposed change here. Also, please tick the appropriate points in the checklist below. --> ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> Adjust test assertions in `AIAgentIntegrationTest` after persistency ID changes ## Breaking Changes <!-- Will users need to update their code or configurations? --> --- #### Type of the changes - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Tests improvement - [ ] Refactoring #### Checklist - [x] The pull request has a description of the proposed change - [x] I read the [Contributing Guidelines](https://github.com/JetBrains/koog/blob/main/CONTRIBUTING.md) before opening the pull request - [x] The pull request uses **`develop`** as the base branch - [x] Tests for the changes have been added - [x] All new and existing tests passed ##### Additional steps for pull requests adding a new feature - [ ] An issue describing the proposed change exists - [ ] The pull request includes a link to the issue - [ ] The change was discussed and approved in the issue - [ ] Docs have been added / updated
1 parent f12e7e0 commit 1f0adfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

integration-tests/src/jvmTest/kotlin/ai/koog/integration/tests/agent/AIAgentIntegrationTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ class AIAgentIntegrationTest : AIAgentTestBase() {
618618

619619
with(checkpointStorageProvider.getCheckpoints(agent.id)) {
620620
shouldNotBeEmpty()
621-
first().nodePath shouldBe save
621+
first().nodePath shouldContain save
622622
}
623623

624624
val restoredAgent = AIAgent(
@@ -817,9 +817,9 @@ class AIAgentIntegrationTest : AIAgentTestBase() {
817817
with(checkpointStorageProvider.getCheckpoints(agent.id)) {
818818
size shouldBeGreaterThanOrEqual 3
819819
map { it.nodePath }.toSet() shouldNotBeNull {
820-
shouldContain(hello)
821-
shouldContain(world)
822-
shouldContain(bye)
820+
shouldForAny { it.shouldContain(hello) }
821+
shouldForAny { it.shouldContain(world) }
822+
shouldForAny { it.shouldContain(bye) }
823823
}
824824
}
825825
}

0 commit comments

Comments
 (0)