(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestLiveLoadJSONFileEmpty(t *testing.T) { |
| 87 | testutil.DropAll(t, dg) |
| 88 | |
| 89 | pipeline := [][]string{ |
| 90 | {"echo", "[]"}, |
| 91 | {testutil.DgraphBinaryPath(), "live", |
| 92 | "--schema", testDataDir + "/family.schema", "--files", "/dev/stdin", |
| 93 | "--alpha", alphaService, "--creds", "user=groot;password=password;"}, |
| 94 | } |
| 95 | _, err := testutil.Pipeline(pipeline) |
| 96 | require.NoError(t, err, "live loading JSON file ran successfully") |
| 97 | } |
| 98 | |
| 99 | func TestLiveLoadJSONFile(t *testing.T) { |
| 100 | testutil.DropAll(t, dg) |
nothing calls this directly
no test coverage detected