Skip to content

Commit c7ec186

Browse files
Remove context.TODO from tests (#1778)
1 parent f88b08b commit c7ec186

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snow/networking/handler/handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ func TestDynamicEngineTypeDispatch(t *testing.T) {
621621
}
622622

623623
handler.Start(context.Background(), false)
624-
handler.Push(context.TODO(), Message{
624+
handler.Push(context.Background(), Message{
625625
InboundMessage: message.InboundChits(
626626
ids.Empty,
627627
uint32(0),

vms/proposervm/vm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ func TestExpiredBuildBlock(t *testing.T) {
935935
nil,
936936
))
937937
defer func() {
938-
require.NoError(proVM.Shutdown(context.TODO()))
938+
require.NoError(proVM.Shutdown(context.Background()))
939939
}()
940940

941941
// Initialize shouldn't be called again

0 commit comments

Comments
 (0)