Skip to content

Commit

Permalink
Extending the timeout on Ollama tests (#449)
Browse files Browse the repository at this point in the history
* Extending the timeout on Ollama tests

* Testing out the 0.5.8 rc container image

* Rollback of timeout and using a really tiny model

Since we're not actually testing model functionality in this test, just that it starts and is available, we don't really need to care what the model is, just something that'll download fast

* Reverting last change
  • Loading branch information
aaronpowell authored Feb 6, 2025
1 parent 7250acb commit de939e8
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 @@ -4,7 +4,7 @@ internal static class OllamaContainerImageTags
{
public const string Registry = "docker.io";
public const string Image = "ollama/ollama";
public const string Tag = "0.5.7";
public const string Tag = "0.5.8-rc6";

public const string OpenWebUIRegistry = "ghcr.io";
public const string OpenWebUIImage = "open-webui/open-webui";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public async Task OllamaListsAvailableModels()
await Task.WhenAll([
rns.WaitForResourceHealthyAsync("ollama"),
.. modelResources.Select(m => rns.WaitForResourceHealthyAsync(m.Name))
]).WaitAsync(TimeSpan.FromMinutes(5));
]).WaitAsync(TimeSpan.FromMinutes(10));
var httpClient = fixture.CreateHttpClient("ollama");

var models = (await new OllamaApiClient(httpClient).ListLocalModelsAsync()).ToList();

Assert.NotEmpty(models);
Assert.Equal(modelResources.Count, models.Count);
}
Expand Down

0 comments on commit de939e8

Please sign in to comment.