feat(chaos): implement Tier 2 Integration Chaos for Memory, Networking, and LLM Gateway
This commit is contained in:
@@ -8,7 +8,13 @@
|
||||
|
||||
(in-suite tui-suite)
|
||||
|
||||
(test test-command-parser
|
||||
"Verify that slash-commands are correctly identified."
|
||||
;; Stub for now
|
||||
(is (null nil)))
|
||||
(test test-tui-connection-drop
|
||||
"Tier 2 Chaos: Verify that handle-return degrades gracefully when the daemon connection is lost."
|
||||
(let ((opencortex.tui::*chat-history* nil)
|
||||
(opencortex.tui::*input-buffer* (make-array 5 :element-type 'char :initial-contents "hello" :fill-pointer 5 :adjustable t))
|
||||
;; Create a closed stream to simulate connection drop
|
||||
(mock-stream (make-string-output-stream)))
|
||||
(close mock-stream)
|
||||
(opencortex.tui::handle-return mock-stream)
|
||||
;; Check if the error was enqueued to history instead of crashing
|
||||
(is (member "ERROR: Connection to daemon lost." opencortex.tui::*chat-history* :test #'string=))))
|
||||
|
||||
Reference in New Issue
Block a user