(t *testing.T)
| 1463 | } |
| 1464 | |
| 1465 | func TestQueryVarEmptyRootOrderError(t *testing.T) { |
| 1466 | // This bug was fixed in commit b256f9c6e6c68ae163eee3242518f77a6ab35fa0 |
| 1467 | dgraphtest.ShouldSkipTest(t, "b256f9c6e6c68ae163eee3242518f77a6ab35fa0", dc.GetVersion()) |
| 1468 | |
| 1469 | query := ` |
| 1470 | { |
| 1471 | q(func: eq(name, "DNEinDB")) { |
| 1472 | friend(orderdesc: id) { |
| 1473 | name |
| 1474 | } |
| 1475 | } |
| 1476 | } |
| 1477 | ` |
| 1478 | _, err := processQuery(context.Background(), t, query) |
| 1479 | require.Error(t, err) |
| 1480 | require.Contains(t, err.Error(), "Cannot sort by unknown attribute id") |
| 1481 | } |
| 1482 | |
| 1483 | func TestQueryVarEmptyRootOrderChildQueryError(t *testing.T) { |
| 1484 | // This bug was fixed in commit b256f9c6e6c68ae163eee3242518f77a6ab35fa0 |
nothing calls this directly
no test coverage detected