Only aldehyde give positive Tollen's test. However under the strongly basic condition of the test α -hydroxy ketones can isomerize to aldehydes (i.e. endiol rearrangement in fructose that inter convert ketones to aldoses.) so that's why will also gives a positive Tollen's test α -hydroxy ketones.