Skip to content

Commit 471434f

Browse files
anusudarsanebyhr
authored andcommitted
Fix regex for testRestartDuringQuery to handle header interruption
1 parent 1e9a692 commit 471434f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/trino-tests/src/test/java/io/trino/tests/TestWorkerRestart.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public void testRestartDuringQuery()
101101
.cause().hasMessageFindingMatch("^Expected response code from \\S+ to be 200, but was 500" +
102102
"|Expected response from \\S+ is empty" +
103103
"|Error fetching \\S+: Expected response code to be 200, but was 500" +
104-
"|Could not communicate with the remote task. The node may have crashed or be under too much load");
104+
"|Could not communicate with the remote task. The node may have crashed or be under too much load" +
105+
"|Error fetching \\S+: Content-Type header is not set");
105106

106107
// Ensure that the restarted worker is able to serve queries.
107108
assertThat((long) queryRunner.execute("SELECT count(*) FROM tpch.tiny.lineitem").getOnlyValue())

0 commit comments

Comments
 (0)