@@ -1288,7 +1288,8 @@ defmodule Nx.ServingTest do
12881288 ]
12891289
12901290 Node . spawn_link ( :"secondary@127.0.0.1" , DistributedServings , :multiply , [ parent , opts ] )
1291- assert_receive { _ , :join , Nx.Serving , _ }
1291+ assert_receive { _ , :join , name , _ }
1292+ assert name == config . test
12921293
12931294 batch = Nx.Batch . concatenate ( [ Nx . tensor ( [ 1 , 2 ] ) ] )
12941295
@@ -1327,14 +1328,16 @@ defmodule Nx.ServingTest do
13271328 opts2 = Keyword . put ( opts , :distribution_weight , 4 )
13281329
13291330 Node . spawn_link ( :"secondary@127.0.0.1" , DistributedServings , :multiply , [ parent , opts ] )
1330- assert_receive { _ , :join , Nx.Serving , pids }
1331+ assert_receive { _ , :join , name , pids }
13311332 assert length ( pids ) == 1
1333+ assert name == config . test
13321334
13331335 Node . spawn_link ( :"tertiary@127.0.0.1" , DistributedServings , :multiply , [ parent , opts2 ] )
1334- assert_receive { _ , :join , Nx.Serving , pids }
1336+ assert_receive { _ , :join , name , pids }
13351337 assert length ( pids ) == 4
1338+ assert name == config . test
13361339
1337- members = :pg . get_members ( Nx.Serving.PG , Nx.Serving )
1340+ members = :pg . get_members ( Nx.Serving.PG , config . test )
13381341 assert length ( members ) == 5
13391342 end
13401343
@@ -1356,7 +1359,8 @@ defmodule Nx.ServingTest do
13561359
13571360 args = [ parent , opts ]
13581361 Node . spawn_link ( :"secondary@127.0.0.1" , DistributedServings , :add_five_round_about , args )
1359- assert_receive { _ , :join , Nx.Serving , _ }
1362+ assert_receive { _ , :join , name , _ }
1363+ assert name == config . test
13601364
13611365 batch = Nx.Batch . concatenate ( [ Nx . tensor ( [ 1 , 2 ] ) ] )
13621366
@@ -1412,7 +1416,8 @@ defmodule Nx.ServingTest do
14121416 ]
14131417
14141418 Node . spawn_link ( :"tertiary@127.0.0.1" , DistributedServings , :multiply , [ parent , opts ] )
1415- assert_receive { _ , :join , Nx.Serving , _ }
1419+ assert_receive { _ , :join , name , _ }
1420+ assert name == config . test
14161421
14171422 batch = Nx.Batch . concatenate ( [ Nx . tensor ( [ 1 , 2 ] ) ] )
14181423
0 commit comments