Given integer k and a k-graph F, let tk-1(n, F) be the minimum integer t such that every k-graph H on n vertices with codegree at least t contains an F -factor. For integers k ≥ 3 and 0 ≤ l ≤ k-1, let Yk,l be a k-graph with two edges that shares exactly l vertices. Han and Zhao (J. Combin. Theory Ser. A, (2015)) asked the following question:For all k ≥ 3, 0 ≤ l ≤ k-1 and sufficiently large n divisible by 2k -l, determine the exact value of tk-1(n, Yk,l). In this paper, we show that tk-1(n, Yk,l)=(n/2k -l) for k ≥ 3 and 1 ≤ l ≤ k-2, combining with two previously known results of Rödl, Ruciński and Szemerédi (J. Combin. Theory Ser. A, (2009)) and Gao, Han and Zhao (Combinatorics, Probability and Computing, (2019)), the question of Han and Zhao is solved completely.