From a31fbf98edc8c6f0297fa5d8a7270102d9ae0d50 Mon Sep 17 00:00:00 2001 From: Keval Kapdee Date: Wed, 3 Jan 2024 23:15:46 +0000 Subject: [PATCH] Fix false positive test --- test/tests/serial/mail_with_oauth2.bats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests/serial/mail_with_oauth2.bats b/test/tests/serial/mail_with_oauth2.bats index 30be8fdd..2769aed5 100644 --- a/test/tests/serial/mail_with_oauth2.bats +++ b/test/tests/serial/mail_with_oauth2.bats @@ -60,6 +60,8 @@ function teardown_file() { @test "oauth2: imap connect and authentication works" { + _run_in_container_bash 'nc -vz 0.0.0.0 143' + _run_in_container_bash 'sleep 5' _run_in_container_bash 'nc -w 1 0.0.0.0 143 < /tmp/docker-mailserver-test/auth/imap-oauth2-auth.txt' - assert_success + assert_output --partial 'Examine completed' }