Skip to content

Commit c9f48bb

Browse files
committed
Fix Foundry Java hosted agent fixture
Use Double literals for hosted agent CPU and memory options so the generated Java DTO setters compile.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4ef5764 commit c9f48bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/PolyglotAppHosts/Aspire.Hosting.Foundry/Java

tests/PolyglotAppHosts/Aspire.Hosting.Foundry/Java/AppHost.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ void main() throws Exception {
109109

110110
var hostedAgentOptions = new HostedAgentOptions();
111111
hostedAgentOptions.setDescription("Validation hosted agent");
112-
hostedAgentOptions.setCpu(1);
113-
hostedAgentOptions.setMemory(2);
112+
hostedAgentOptions.setCpu(1.0);
113+
hostedAgentOptions.setMemory(2.0);
114114
hostedAgentOptions.setMetadata(Map.of("scenario", "validation"));
115115
hostedAgentOptions.setEnvironmentVariables(Map.of("VALIDATION_MODE", "true"));
116116
hostedAgent.asHostedAgent(project, hostedAgentOptions);

0 commit comments

Comments
 (0)