Index: tests/comment/query.php
===================================================================
--- tests/comment/query.php	(revision 1326)
+++ tests/comment/query.php	(working copy)
@@ -25,7 +25,8 @@
 	 * @ticket 21101
 	 */
 	function test_get_comment_comment_approved_1() {
-		$comment_id = $this->factory->comment->create();
+		$comment_args = array( 'comment_post_ID' => $this->factory->post->create() );
+		$comment_id = $this->factory->comment->create( $comment_args );
 		$comments_approved_1 = get_comments( array( 'status' => 'approve' ) );
 
 		$this->assertEquals( 1, count( $comments_approved_1 ) );
@@ -80,9 +81,10 @@
 	 * @ticket 21003
 	 */
 	function test_orderby_meta() {
-		$comment_id = $this->factory->comment->create();
-		$comment_id2 = $this->factory->comment->create();
-		$comment_id3 = $this->factory->comment->create();
+		$comment_args = array( 'comment_post_ID' => $this->factory->post->create() );
+		$comment_id = $this->factory->comment->create( $comment_args );
+		$comment_id2 = $this->factory->comment->create( $comment_args );
+		$comment_id3 = $this->factory->comment->create( $comment_args );
 
 		add_comment_meta( $comment_id, 'key', 'value1', true );
 		add_comment_meta( $comment_id, 'key1', 'value1', true );
