Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-1476] Fix race condition in TestTwoSuccessiveTasksOnSameContext #1060

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -291,10 +291,10 @@ public void TestTwoSuccessiveTasksOnSameContext()
testTask.StartEvent.Wait();
testTask.CountDownEvent.Signal();
testTask.StopEvent.Wait();
Assert.False(contextRuntime.GetTaskStatus().IsPresent());

taskThread.Join();

Assert.False(contextRuntime.GetTaskStatus().IsPresent());

taskThread = contextRuntime.StartTaskOnNewThread(taskConfig);
var secondTestTask = contextRuntime.TaskRuntime.Value.Task as TestTask;
if (secondTestTask == null)
Expand Down