1 package edgedb 2 3 import ( 4 "context" 5 "testing" 6 7 "edge-infra.dev/pkg/edge/controllers/dbmetrics" 8 ) 9 10 // This feature is relied upon by consumers during integration testing to turn RecordInfraStatus into a no-op. 11 func TestNilEdgeDBDoesNotPanic(t *testing.T) { 12 t.Logf("This test should log an error") 13 var edb = new(EdgeDB) 14 edb.RecordInfraStatus(context.Background(), nil, dbmetrics.DBMetrics{}) 15 } 16