Skip to content

Commit

Permalink
Updated tests to check container args
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsM16 committed Dec 2, 2024
1 parent 27cab49 commit d1db720
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ public async Task WithGPUSupport(OllamaGpuVendor vendor, string expectedArg, str

var resource = Assert.Single(appModel.Resources.OfType<OllamaResource>());

Assert.True(resource.TryGetLastAnnotation(out CommandLineArgsCallbackAnnotation? argsAnnotations));
CommandLineArgsCallbackContext context = new([]);
Assert.True(resource.TryGetLastAnnotation(out ContainerRuntimeArgsCallbackAnnotation? argsAnnotations));
ContainerRuntimeArgsCallbackContext context = new([]);
await argsAnnotations.Callback(context);

Assert.Collection(
Expand Down

0 comments on commit d1db720

Please sign in to comment.