Skip to content

Commit e796a41

Browse files
committed
fix tests
1 parent d3dfd21 commit e796a41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public override async Task<T> CallActivityAsync<T>(
138138

139139
try
140140
{
141-
IDictionary<string, string>? tags = null;
141+
IDictionary<string, string>? tags = new Dictionary<string, string>();
142142
if (options is CallActivityOptions callActivityOptions)
143143
{
144144
if (callActivityOptions.Tags is not null)
@@ -516,7 +516,7 @@ string GetDefaultVersion()
516516
}
517517

518518
// Secondary choice.
519-
if (this.Properties.TryGetValue("defaultVersion", out var propVersion) && propVersion is string v2)
519+
if (this.Properties.TryGetValue("defaultVersion", out object? propVersion) && propVersion is string v2)
520520
{
521521
return v2;
522522
}

0 commit comments

Comments
 (0)