Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Sep 19, 2024
1 parent 717a85d commit 73c6f35
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ class PicoLLMAppTestUITests: BaseTest {
var res: PicoLLMCompletion?

group.enter()
DispatchQueue.global(qos: .userInitiated).async {
DispatchQueue.global(qos: .background).async {
do {
res = try self.handle!.generate(prompt: testCase.prompt)
} catch { }
group.leave()
}

sleep(1)
try handle!.interrupt()

group.wait()
Expand Down Expand Up @@ -426,7 +426,6 @@ class PicoLLMAppTestUITests: BaseTest {
"phi3-chat-dialog": Phi3ChatDialog.self
]
let dialogPrompts = self.dialogTestData![testName] as! [String: String]

let conversation = self.dialogTestData!["conversation"] as! [[String]]

for (dialogClassName, dialogClassType) in dialogClasses {
Expand All @@ -437,6 +436,7 @@ class PicoLLMAppTestUITests: BaseTest {
try dialog.addHumanRequest(content: conversation[i][0])
try dialog.addLLMResponse(content: conversation[i][1])
}

try dialog.addHumanRequest(content: conversation.last![0])
XCTAssertEqual(try dialog.prompt(), prompt)
}
Expand Down

0 comments on commit 73c6f35

Please sign in to comment.