Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 6763967

Browse files
authored
Merge pull request #29 from riddlemd/master
Changed LoadModel to LoadModelAsync in UnitTests
2 parents 3530a63 + 4c66573 commit 6763967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OnnxStack.IntegrationTests/StableDiffusionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task GivenAStableDiffusionModel_WhenLoadModel_ThenModelIsLoaded(str
4848

4949
//act
5050
_logger.LogInformation("Attempting to load model {0}", model.Name);
51-
var isModelLoaded = await _stableDiffusion.LoadModel(model);
51+
var isModelLoaded = await _stableDiffusion.LoadModelAsync(model);
5252

5353
//assert
5454
isModelLoaded.Should().BeTrue();
@@ -64,7 +64,7 @@ public async Task GivenTextToImage_WhenInference_ThenImageGenerated(string model
6464
//arrange
6565
var model = _stableDiffusion.Models.Single(m => m.Name == modelName);
6666
_logger.LogInformation("Attempting to load model: {0}", model.Name);
67-
await _stableDiffusion.LoadModel(model);
67+
await _stableDiffusion.LoadModelAsync(model);
6868

6969
var prompt = new PromptOptions
7070
{

0 commit comments

Comments
 (0)