From patchwork Mon Sep 25 07:20:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1838919 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Tc/g29ZM; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=FO7Mcft0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RvDrC1Vqrz26jP for ; Mon, 25 Sep 2023 17:23:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fDdajprizq9NaNm5HrPahU5MaAVsVh3D4QTetgn8Hdk=; b=Tc/g29ZM7UeRjW j735dnrUm1MRUuemr88qbMYDmvYZv/NcdjJ+diaVQxy70lQzjKafTyc2GvNfgCpkl8Xt5zNhYVqxs GSwa8zcOCwPIEJdLHCVuftE5JPBZZdRitKl57Jpm9o4d6zPyRx0542pTxeDcprUCLuALBocDrgsjn 78nfN+laTdcoV0wMS+YK+3L1eMttOasZyefb6M72wj+FKKQl8qt7IEJTd3YzmmqUVz9BM/nVC8GLW bEDXP/VESa9vdlFIyUkjfsP/ZopkHjHlmIQpL+tvyc7G4ODdDHNIUhpVP5dgRGEjOjwMLlI4IA86N mhJy3Hn/46jQWh96zT9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvf-00DYL0-2D; Mon, 25 Sep 2023 07:22:51 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvW-00DYEj-0w for hostap@lists.infradead.org; Mon, 25 Sep 2023 07:22:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=ARKvtCtq2RjRtp49qqm0kDx+VE/uxZOenMW/oBFROcI=; t=1695626562; x=1696836162; b=FO7Mcft0k8pxDFe4pE7eH/8SjhyLQ1tCgZZzz4+8YR3y2k1 t01wvO/GaiwO66N35ppZDoc2CEjnrIUfIF7i1D3C7f0sKwXABl3+rXICEcXPSvMzYF7EcmWqwIC0S jeb5qOmAhDnZ99fHfDQ+J55P4D5pgYQqBPNppx/VA/Z8JU7NeuSV4FeU/smIehN+tV5u0K7A98R8T l1GKda+VMQszSxMeGYb8E29pNqp4eHxKv/AyO1Wf0a11RSvx0Al2/eWUZq7HRlJoDsI9l1JBwGyVz M+eBEO+x3mthflZSzdQlb3bLBSN5XCO0F1/zRh+Aez6lxxrdME44Zb7sfQ0CBqsQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qkfvU-003GNz-11; Mon, 25 Sep 2023 09:22:40 +0200 From: Johannes Berg To: hostap@lists.infradead.org Cc: Johannes Berg Subject: [PATCH 10/17] tests: blocked rekey: give slightly more time Date: Mon, 25 Sep 2023 09:20:50 +0200 Message-ID: <20230925092039.9042498b394f.I785dd85e9026eaafb5975efc6485d356cdad72cd@changeid> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230925072039.49987-18-johannes@sipsolutions.net> References: <20230925072039.49987-18-johannes@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_002242_326949_B7EFAED6 X-CRM114-Status: GOOD ( 11.45 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Johannes Berg Due to scheduling changes, we don't always now succeed to reconnect in exactly 1 second, it might take 1.01. Give it 1.1 for a bit more leeway, it's not clear why it should be exactly 1 second anyway. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg Due to scheduling changes, we don't always now succeed to reconnect in exactly 1 second, it might take 1.01. Give it 1.1 for a bit more leeway, it's not clear why it should be exactly 1 second anyway. Signed-off-by: Johannes Berg --- tests/hwsim/test_ap_psk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index aac104bb7cd6..4d493cb3c6ef 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -250,7 +250,7 @@ def test_ap_wpa2_ptk_rekey_blocked_ap(dev, apdev): raise Exception("PTK rekey timed out") if "WPA: Key negotiation completed" in ev: raise Exception("No disconnect, PTK rekey succeeded") - ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1) + ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1.1) if ev is None: raise Exception("Reconnect too slow") @@ -268,7 +268,7 @@ def test_ap_wpa2_ptk_rekey_blocked_sta(dev, apdev): raise Exception("PTK rekey timed out") if "WPA: Key negotiation completed" in ev: raise Exception("No disconnect, PTK rekey succeeded") - ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1) + ev = dev[0].wait_event(["WPA: Key negotiation completed"], timeout=1.1) if ev is None: raise Exception("Reconnect too slow")