Skip to content

Commit

Permalink
test: Using context TODO in test
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 3, 2022
1 parent 2ca285d commit f444024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/thumbnail/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestHasThumbnail(t *testing.T) {
storageMock.EXPECT().Info(gomock.Any(), gomock.Any()).Return(absto.Item{}, nil)
}

if result := tc.instance.HasThumbnail(context.Background(), tc.input, SmallSize); result != tc.want {
if result := tc.instance.HasThumbnail(context.TODO(), tc.input, SmallSize); result != tc.want {
t.Errorf("HasThumbnail() = %t, want %t", result, tc.want)
}
})
Expand Down

0 comments on commit f444024

Please sign in to comment.