Skip to content

[Bug] Auto-time-skipping may not reset properly #471

@cretz

Description

@cretz

Describe the bug

See this comment: temporalio/sdk-ruby#260 (comment). Specifically,

public override async Task<T> WithAutoTimeSkippingDisabledAsync<T>(Func<Task<T>> func)
{
var alreadyDisabled = autoTimeSkipping;
autoTimeSkipping = false;
try
{
return await func().ConfigureAwait(false);
}
finally
{
if (!alreadyDisabled)
{
autoTimeSkipping = true;
}
}
}
might have its assignment/conditional backwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions