From 2fe6bc14c8cdecf66f7d1a0b2792a7de3fb796bf Mon Sep 17 00:00:00 2001 From: peiwangdb Date: Wed, 15 Dec 2021 14:27:57 -0500 Subject: [PATCH] fix test build failure --- .../java/io/prestosql/plugin/memory/TestMemorySmoke.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemorySmoke.java b/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemorySmoke.java index 14b934131..c2b862836 100644 --- a/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemorySmoke.java +++ b/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemorySmoke.java @@ -206,9 +206,10 @@ public class TestMemorySmoke @Test public void testSelectFromEmptyTable() { - assertUpdate("CREATE TABLE test_select_empty AS SELECT * FROM tpch.tiny.nation WHERE nationkey > 1000", "SELECT count(*) FROM nation WHERE nationkey > 1000"); - - assertQueryResult("SELECT count(*) FROM test_select_empty", 0L); + synchronized (this) { + assertUpdate("CREATE TABLE test_select_empty AS SELECT * FROM tpch.tiny.nation WHERE nationkey > 1000", "SELECT count(*) FROM nation WHERE nationkey > 1000"); + assertQueryResult("SELECT count(*) FROM test_select_empty", 0L); + } } @Test -- Gitee