Skip to content

Commit

Permalink
Pass options to findPath
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid committed Jul 20, 2023
1 parent 9410eed commit c04d869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/data/integration_tests/test_lua_api/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ testing.registerLocalTest('findPath',
},
destinationTolerance = 1,
}
local status, path = nearby.findPath(src, dst)
local status, path = nearby.findPath(src, dst, options)
testing.expectEqual(status, nearby.FIND_PATH_STATUS.Success, 'Status')
testing.expectLessOrEqual((path[path:size()] - dst):length(), 1, 'Last path point')
end)
Expand Down

0 comments on commit c04d869

Please sign in to comment.