Skip to content

Commit 60609e2

Browse files
bank-account: fix
1 parent b0c3911 commit 60609e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/practice/bank-account/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class {{ testClass }}
5151
{{- end -}}
5252
}
5353
}));
54-
await Task.WaitAll(tasks.ToArray());
54+
await Task.WhenAll(tasks.ToArray());
5555
}
5656
{{- else }}
5757
account.{{ op | to_call }};

exercises/practice/bank-account/BankAccountTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public async Task Can_handle_concurrent_transactions()
168168
account.Withdraw(1m);
169169
}
170170
}));
171-
await Task.WaitAll(tasks.ToArray());
171+
await Task.WhenAll(tasks.ToArray());
172172
}
173173
Assert.Equal(0m, account.Balance);
174174
}

0 commit comments

Comments
 (0)