mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
Fix TestObjectTableResubscribe testcase bug (#9650)
This commit is contained in:
@@ -981,12 +981,16 @@ TEST_F(ServiceBasedGcsClientTest, TestObjectTableResubscribe) {
|
||||
|
||||
// Restart GCS.
|
||||
RestartGcsServer();
|
||||
// When GCS client detects that GCS server has restarted, but the pub-sub server
|
||||
// didn't restart, it will fetch the subscription data again from the GCS server, so
|
||||
// `object2_change_count` plus 1.
|
||||
WaitPendingDone(object2_change_count, 2);
|
||||
|
||||
// Add location of object to GCS again and check if resubscribe works.
|
||||
ASSERT_TRUE(AddLocation(object1_id, node_id));
|
||||
WaitPendingDone(object1_change_count, 1);
|
||||
ASSERT_TRUE(AddLocation(object2_id, node_id));
|
||||
WaitPendingDone(object2_change_count, 2);
|
||||
WaitPendingDone(object2_change_count, 3);
|
||||
}
|
||||
|
||||
TEST_F(ServiceBasedGcsClientTest, TestNodeTableResubscribe) {
|
||||
|
||||
Reference in New Issue
Block a user