@@ -74,7 +74,7 @@ func TestKnowledgeBaseOperations(t *testing.T) {
7474 }
7575
7676 // Verify entities persist
77- graph , err = kb .readGraph ()
77+ graph , err = kb .loadGraph ()
7878 if err != nil {
7979 t .Fatalf ("failed to read graph: %v" , err )
8080 }
@@ -146,7 +146,7 @@ func TestKnowledgeBaseOperations(t *testing.T) {
146146 }
147147
148148 // Confirm observation removal
149- graph , _ = kb .readGraph ()
149+ graph , _ = kb .loadGraph ()
150150 aliceFound := false
151151 for _ , e := range graph .Entities {
152152 if e .Name == "Alice" {
@@ -169,7 +169,7 @@ func TestKnowledgeBaseOperations(t *testing.T) {
169169 }
170170
171171 // Confirm relation removal
172- graph , _ = kb .readGraph ()
172+ graph , _ = kb .loadGraph ()
173173 if len (graph .Relations ) != 0 {
174174 t .Errorf ("expected 0 relations after deletion, got %d" , len (graph .Relations ))
175175 }
@@ -181,7 +181,7 @@ func TestKnowledgeBaseOperations(t *testing.T) {
181181 }
182182
183183 // Confirm entity removal
184- graph , _ = kb .readGraph ()
184+ graph , _ = kb .loadGraph ()
185185 if len (graph .Entities ) != 1 || graph .Entities [0 ].Name != "Bob" {
186186 t .Errorf ("expected only Bob to remain after deleting Alice, got %+v" , graph .Entities )
187187 }
0 commit comments