Preserve transport error identities
This commit is contained in:
@@ -737,6 +737,9 @@ func TestEngineRunPropagatesCallerCancellation(t *testing.T) {
|
||||
if !errors.Is(err, promptkit.ErrLLMGenerate) {
|
||||
t.Fatalf("expected ErrLLMGenerate after caller cancellation, got %v", err)
|
||||
}
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
t.Fatalf("expected context cancellation identity, got %v", err)
|
||||
}
|
||||
case <-watchdog.C:
|
||||
t.Fatal("timed out waiting for Engine.Run to return after cancellation")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user