From c2e90c6850afac7fc7a4359cda9d9cfd95e20b37 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 24 Apr 2020 11:17:46 +0200 Subject: [PATCH] Fix intermittent test failure on AppVeyor For several days this test case is often failing on AppVeyor, because the table already exists. Thus, we add a cleanup step just before creating the table. --- ext/mysqli/tests/mysqli_insert_packet_overflow.phpt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt b/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt index fc6b6a3ad7c89..319b7d53e0f5c 100644 --- a/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt +++ b/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt @@ -71,6 +71,10 @@ memory_limit=256M printf("[011] Failed to change max_allowed_packet"); } + if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { + printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); + } + if (!mysqli_query($link, "CREATE TABLE test(col_blob LONGBLOB) ENGINE=" . $engine)) printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));