Only aldehyde give positive Tollen's test. However under the strongly basic condition of the test $\alpha$ -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 $\alpha$ -hydroxy ketones.