From nobody Sun May 19 12:45:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1659443707; cv=none; d=zohomail.com; s=zohoarc; b=EBnqktGHTJctDhrtHzL/AIO9bVeS7KhRapQIt2m/bVZ1llwjXzq8a4GxFldu7Szed+mMaooJvhhOzSWR//t/2UicfLnzfB4/WFNQzBC4tapzzdd7qLeXof9wLbDsd+LL4GXJACUlJy6eE3F+3pJot1UiPZSFXRGH6oBmCaGqoas= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659443707; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=S9R5tqSmmefhA7X/g/nRIFNf4WnpueH8M5Wxro29Bk8=; b=lwkYZArdKsN5UMHRJ6a6xSDBuiqoSD0laTi9V/p3CxZgd1CEsitC6d9PeoADzF96j8T4tNtJvR4geXdJ2vFYBH4HYq0+vumHvVPourBNFj5/XTph7F0uAXUWbkMXMPiQGmy7ZFNW9CcZh5CaaRAv416rfs5XZN8gazmacdx5BYA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1659443707206102.10843346531328; Tue, 2 Aug 2022 05:35:07 -0700 (PDT) Received: from localhost ([::1]:58474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIr72-0000jO-Ex for importer@patchew.org; Tue, 02 Aug 2022 08:35:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIr3J-0007d7-Rs for qemu-devel@nongnu.org; Tue, 02 Aug 2022 08:31:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIr3H-0001QX-6a for qemu-devel@nongnu.org; Tue, 02 Aug 2022 08:31:12 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-558-3Tp6TriwNiKsW1mlji4Irw-1; Tue, 02 Aug 2022 08:31:06 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A2B6985A585; Tue, 2 Aug 2022 12:31:05 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B46418ECC; Tue, 2 Aug 2022 12:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659443469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=S9R5tqSmmefhA7X/g/nRIFNf4WnpueH8M5Wxro29Bk8=; b=Wr66pS8ntn3uSZ4OFokqI09NxIVPGj6wCSTRtzH+5VT/Tjzg7SxUmsHh4uA93NllrcrJW1 +n/xW7dfyJByoScRW6XH0TbjzuYKS0jrIyt3ZhDzULp2l/2O4vlkGcb2gejEURo4O7DGrv EYwSjBu0n5vydyr7MiDTQz99PZZKNkQ= X-MC-Unique: 3Tp6TriwNiKsW1mlji4Irw-1 From: Thomas Huth To: Kevin Wolf , Hanna Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Vladimir Sementsov-Ogievskiy Subject: [PATCH] tests/qemu-iotests/264: Allow up to 5s for the BLOCK_JOB_CANCEL event to arrive Date: Tue, 2 Aug 2022 14:31:01 +0200 Message-Id: <20220802123101.430757-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1659443710781100001 Content-Type: text/plain; charset="utf-8" It is possible to hit the assertTrue(delta_t < 2.0) on very loaded systems. Increase the value to 5.0 to ease the situation a little bit. Signed-off-by: Thomas Huth Reviewed-by: Vladimir Sementsov-Ogievskiy --- See also https://lists.gnu.org/archive/html/qemu-devel/2022-07/msg03936.ht= ml tests/qemu-iotests/264 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/264 b/tests/qemu-iotests/264 index bc431d1a19..289381e315 100755 --- a/tests/qemu-iotests/264 +++ b/tests/qemu-iotests/264 @@ -101,7 +101,7 @@ class TestNbdReconnect(iotests.QMPTestCase): start_t =3D time.time() self.vm.event_wait('BLOCK_JOB_CANCELLED') delta_t =3D time.time() - start_t - self.assertTrue(delta_t < 2.0) + self.assertTrue(delta_t < 5.0) =20 def test_mirror_cancel(self): # Mirror speed limit doesn't work well enough, it seems that mirror --=20 2.31.1