fix TestGetUncommittedLineage npe bug (#8585)

This commit is contained in:
fangfengbin
2020-05-25 15:48:58 +08:00
committed by GitHub
parent 229af662c6
commit f22d12d2fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class RAY_EXPORT RedisGcsClient : public GcsClient {
HeartbeatBatchTable &heartbeat_batch_table();
DynamicResourceTable &resource_table();
/// Implements the Tasks() interface.
raylet::TaskTable &raylet_task_table();
virtual raylet::TaskTable &raylet_task_table();
TaskLeaseTable &task_lease_table();
TaskReconstructionLog &task_reconstruction_log();
/// Implements the Errors() interface.
+1 -1
View File
@@ -157,7 +157,7 @@ class MockGcsClient : public gcs::RedisGcsClient {
node_accessor_.reset(new MockNodeInfoAccessor(this, node_id));
}
gcs::raylet::TaskTable &raylet_task_table() { return *task_table_fake_; }
gcs::raylet::TaskTable &raylet_task_table() override { return *task_table_fake_; }
MockTaskInfoAccessor &MockTasks() {
return *dynamic_cast<MockTaskInfoAccessor *>(task_accessor_.get());