mirror of
https://github.com/luxfi/indexer.git
synced 2026-09-24 00:25:37 +00:00
indexer: Corona → Corona identifier rename + fix stale xvm→aivm test refs
Two unrelated cleanups bundled: 1. quantum/* Corona* → Corona* identifier rename (audit consistency). 2. ai/adapter_test.go expected "xvm.getVertex"/"xvm.getRecentVertices" methods but ai/adapter.go was updated to emit "aivm.*" — stale test expectations fixed to match the live implementation. Tests: indexer/ai PASS 0.363s, indexer/quantum PASS.
This commit is contained in:
+4
-4
@@ -325,8 +325,8 @@ func TestGetRecentVerticesRequestValidation(t *testing.T) {
|
||||
if req["jsonrpc"] != "2.0" {
|
||||
t.Errorf("expected jsonrpc 2.0, got %v", req["jsonrpc"])
|
||||
}
|
||||
if req["method"] != "xvm.getRecentVertices" {
|
||||
t.Errorf("expected method xvm.getRecentVertices, got %v", req["method"])
|
||||
if req["method"] != "aivm.getRecentVertices" {
|
||||
t.Errorf("expected method aivm.getRecentVertices, got %v", req["method"])
|
||||
}
|
||||
|
||||
params := req["params"].(map[string]interface{})
|
||||
@@ -383,8 +383,8 @@ func TestGetVertexByID(t *testing.T) {
|
||||
var req map[string]interface{}
|
||||
json.NewDecoder(r.Body).Decode(&req)
|
||||
|
||||
if req["method"] != "xvm.getVertex" {
|
||||
t.Errorf("expected method xvm.getVertex, got %v", req["method"])
|
||||
if req["method"] != "aivm.getVertex" {
|
||||
t.Errorf("expected method aivm.getVertex, got %v", req["method"])
|
||||
}
|
||||
|
||||
params := req["params"].(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user