Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Nov 28, 2024
1 parent aaba4b0 commit 7071e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Services/LMKitMaestroTestsHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ namespace LMKit.Maestro.Tests
{
internal static class MaestroTestsHelpers
{
public static void AssertPromptResponseIsSuccessful(LMKitService.PromptResult promptResult)
public static void AssertPromptResponseIsSuccessful(LMKitService.LMKitResult promptResult)
{
Assert.Equal(promptResult.Status, LMKitTextGenerationStatus.Undefined);
Assert.Null(promptResult.Exception);
Assert.NotNull(promptResult.TextGenerationResult);
Assert.NotNull(promptResult.Result);
}

public static void AssertConversationPromptSuccessState(ConversationViewModelWrapper testConversation, int expectedMessageCount = 2)
Expand Down
4 changes: 2 additions & 2 deletions tests/Services/LmKitDummyConversation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class LMKitDummyConversation
{
LMKitService.Conversation Conversation { get; }

public TaskCompletionSource<LMKitService.PromptResult?> PromptResultTask { get; private set; } = new TaskCompletionSource<LMKitService.PromptResult?>();
public TaskCompletionSource<LMKitService.LMKitResult?> PromptResultTask { get; private set; } = new TaskCompletionSource<LMKitService.LMKitResult?>();

public LMKitDummyConversation(LMKitService lmKitService)
{
Expand All @@ -15,7 +15,7 @@ public LMKitDummyConversation(LMKitService lmKitService)

public void SubmitPrompt(LMKitService lmKitService, string prompt)
{
LMKitService.PromptResult? promptResult = null;
LMKitService.LMKitResult? promptResult = null;

Task.Run(async () =>
{
Expand Down

0 comments on commit 7071e63

Please sign in to comment.