Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriacai01 committed Sep 4, 2024
1 parent bc1bc9a commit 12105fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class GantryRPCClientTest {

@Test
fun moveToPosition(){
val pos = client.moveToPosition(listOf(1.2, 3.4), listOf(5.6, 7.8))
verify(gantry).moveToPosition( listOf(1.2, 3.4), listOf(5.6, 7.8))
client.moveToPosition(listOf(1.2, 3.4), listOf(5.6, 7.8))
verify(gantry).moveToPosition( listOf(1.2, 3.4), listOf(5.6, 7.8), Struct.getDefaultInstance())

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GantryRPCServiceTest {
fun moveToPosition(){
val request = MoveToPositionRequest.newBuilder().setName(gantry.name.name).addAllPositionsMm(listOf(1.2, 3.4)).addAllSpeedsMmPerSec(listOf(5.6, 7.8)).build()
client.moveToPosition(request)
verify(gantry).moveToPosition( listOf(1.2, 3.4), listOf(5.6, 7.8))
verify(gantry).moveToPosition( listOf(1.2, 3.4), listOf(5.6, 7.8), Struct.getDefaultInstance())
}

@Test
Expand Down

0 comments on commit 12105fd

Please sign in to comment.