The Call.Unset method was not properly clearing the dependency established by the CallB.NotBefore(CallA) method, which stipulates that CallA should precede CallB. Consequently, the expectations for CallB were failing because it was still anticipating CallA.
Changes
This PR adds the field requiredBy to the Call object, that tracks the dependent Call instances (e.g: CallB, in the above example).
This field is used in the Unset method to clear the NotBefore expectations from the dependent calls.
Summary
The
Call.Unset
method was not properly clearing the dependency established by theCallB.NotBefore(CallA)
method, which stipulates that CallA should precede CallB. Consequently, the expectations for CallB were failing because it was still anticipating CallA.Changes
This PR adds the field
requiredBy
to theCall
object, that tracks the dependentCall
instances (e.g: CallB, in the above example). This field is used in theUnset
method to clear theNotBefore
expectations from the dependent calls.Related issues
Closes #1542