Skip to content

Conversation

@speeddragon
Copy link

@speeddragon speeddragon commented Dec 31, 2025

The test was checking the local cache to resolve the output link. It needs to resolve the link using the server cache.

Comment on lines +1197 to +1200
{link, LinkID, _ } = maps:get(<<"output">>, Res),
%% We need to resolve agaisnt the server cache
{ok, #{<<"body">> := Body}} = post(URL, Msg#{<<"path">> => <<"/", LinkID/binary, "/1">>}, ClientOpts),
?assertEqual(<<"6.00000000000000000000e+00">>, Body).
Copy link
Author

@speeddragon speeddragon Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if there is a better way to do this, maybe ask to return the content loaded? I'm not sure if this functionality is there. I've tried to load it (ensure_all_loaded), but never got the result resolved back.

This is a simple alternative, but I would recommend avoiding calls to internal functions.

?assertEqual(6.0, hb_ao:get(<<"output/1">>, Res, ServerOpts)).

@speeddragon speeddragon marked this pull request as ready for review January 6, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants