3535
3636var (
3737 alphaService string
38- zeroService string
3938 alphaName string
4039 alphaExportPath string
4140 localExportPath = "./export_copy"
@@ -87,8 +86,7 @@ func TestLiveLoadUpsertAtOnce(t *testing.T) {
8786 pipeline := [][]string {
8887 {testutil .DgraphBinaryPath (), "live" ,
8988 "--schema" , testDataDir + "/xid.schema" , "--files" , file , "--alpha" ,
90- alphaService , "--zero" , zeroService ,
91- "--creds" , "user=groot;password=password;" , "-U" , "xid" },
89+ alphaService , "--creds" , "user=groot;password=password;" , "-U" , "xid" },
9290 }
9391 _ , err := testutil .Pipeline (pipeline )
9492 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -102,17 +100,15 @@ func TestLiveLoadUpsert(t *testing.T) {
102100 pipeline := [][]string {
103101 {testutil .DgraphBinaryPath (), "live" ,
104102 "--schema" , testDataDir + "/xid.schema" , "--files" , testDataDir + "/xid_a.rdf" ,
105- "--alpha" , alphaService , "--zero" , zeroService ,
106- "--creds" , "user=groot;password=password;" , "-U" , "xid" },
103+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" , "-U" , "xid" },
107104 }
108105 _ , err := testutil .Pipeline (pipeline )
109106 require .NoError (t , err , "live loading JSON file exited with error" )
110107
111108 pipeline = [][]string {
112109 {testutil .DgraphBinaryPath (), "live" ,
113110 "--schema" , testDataDir + "/xid.schema" , "--files" , testDataDir + "/xid_b.rdf" ,
114- "--alpha" , alphaService , "--zero" , zeroService ,
115- "--creds" , "user=groot;password=password;" , "-U" , "xid" },
111+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" , "-U" , "xid" },
116112 }
117113 _ , err = testutil .Pipeline (pipeline )
118114 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -190,8 +186,7 @@ func TestLiveLoadJsonUidKeep(t *testing.T) {
190186 pipeline := [][]string {
191187 {testutil .DgraphBinaryPath (), "live" ,
192188 "--schema" , testDataDir + "/family.schema" , "--files" , testDataDir + "/family.json" ,
193- "--alpha" , alphaService , "--zero" , zeroService ,
194- "--creds" , "user=groot;password=password;" },
189+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
195190 }
196191 _ , err := testutil .Pipeline (pipeline )
197192 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -205,8 +200,7 @@ func TestLiveLoadJsonUidDiscard(t *testing.T) {
205200 pipeline := [][]string {
206201 {testutil .DgraphBinaryPath (), "live" , "--new_uids" ,
207202 "--schema" , testDataDir + "/family.schema" , "--files" , testDataDir + "/family.json" ,
208- "--alpha" , alphaService , "--zero" , zeroService ,
209- "--creds" , "user=groot;password=password;" },
203+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
210204 }
211205 _ , err := testutil .Pipeline (pipeline )
212206 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -220,8 +214,7 @@ func TestLiveLoadRdfUidKeep(t *testing.T) {
220214 pipeline := [][]string {
221215 {testutil .DgraphBinaryPath (), "live" ,
222216 "--schema" , testDataDir + "/family.schema" , "--files" , testDataDir + "/family.rdf" ,
223- "--alpha" , alphaService , "--zero" , zeroService ,
224- "--creds" , "user=groot;password=password;" },
217+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
225218 }
226219 _ , err := testutil .Pipeline (pipeline )
227220 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -235,8 +228,7 @@ func TestLiveLoadRdfUidDiscard(t *testing.T) {
235228 pipeline := [][]string {
236229 {testutil .DgraphBinaryPath (), "live" , "--new_uids" ,
237230 "--schema" , testDataDir + "/family.schema" , "--files" , testDataDir + "/family.rdf" ,
238- "--alpha" , alphaService , "--zero" , zeroService ,
239- "--creds" , "user=groot;password=password;" },
231+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
240232 }
241233 _ , err := testutil .Pipeline (pipeline )
242234 require .NoError (t , err , "live loading JSON file exited with error" )
@@ -276,8 +268,7 @@ func TestLiveLoadExportedSchema(t *testing.T) {
276268 "--files" , localExportPath + "/" + exportId + "/" + groupId + ".rdf.gz" ,
277269 "--encryption" ,
278270 x .BuildEncFlag (testDataDir + "/../../../../enc/test-fixtures/enc-key" ),
279- "--alpha" , alphaService , "--zero" , zeroService ,
280- "--creds" , "user=groot;password=password;" },
271+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
281272 }
282273 _ , err := testutil .Pipeline (pipeline )
283274 require .NoError (t , err , "live loading exported schema exited with error" )
@@ -316,8 +307,7 @@ func TestLiveLoadFileName(t *testing.T) {
316307 pipeline := [][]string {
317308 {testutil .DgraphBinaryPath (), "live" ,
318309 "--files" , testDataDir + "/correct1.rdf," + testDataDir + "/errored1.rdf" ,
319- "--alpha" , alphaService , "--zero" , zeroService ,
320- "--creds" , "user=groot;password=password;" },
310+ "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
321311 }
322312
323313 out , err := testutil .Pipeline (pipeline )
@@ -333,8 +323,7 @@ func TestLiveLoadFileNameMultipleErrored(t *testing.T) {
333323 pipeline := [][]string {
334324 {testutil .DgraphBinaryPath (), "live" ,
335325 "--files" , testDataDir + "/correct1.rdf," + testDataDir + "/errored1.rdf," +
336- testDataDir + "/errored2.rdf" , "--alpha" , alphaService , "--zero" , zeroService ,
337- "--creds" , "user=groot;password=password;" },
326+ testDataDir + "/errored2.rdf" , "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
338327 }
339328
340329 out , err := testutil .Pipeline (pipeline )
@@ -351,8 +340,7 @@ func TestLiveLoadFileNameMultipleCorrect(t *testing.T) {
351340 pipeline := [][]string {
352341 {testutil .DgraphBinaryPath (), "live" ,
353342 "--files" , testDataDir + "/correct1.rdf," + testDataDir + "/correct2.rdf," +
354- testDataDir + "/errored1.rdf" , "--alpha" , alphaService , "--zero" , zeroService ,
355- "--creds" , "user=groot;password=password;" },
343+ testDataDir + "/errored1.rdf" , "--alpha" , alphaService , "--creds" , "user=groot;password=password;" },
356344 }
357345
358346 out , err := testutil .Pipeline (pipeline )
@@ -365,7 +353,6 @@ func TestLiveLoadFileNameMultipleCorrect(t *testing.T) {
365353func TestMain (m * testing.M ) {
366354 alphaName = testutil .Instance
367355 alphaService = testutil .SockAddr
368- zeroService = testutil .SockAddrZero
369356
370357 x .AssertTrue (strings .Count (alphaName , "_" ) == 2 )
371358 left := strings .Index (alphaName , "_" )
0 commit comments