-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "unexpected end of stream" error.
We check that MariaDB container started, by looking into log and waiting for special lines. Before that change, we were looking for a line "ready for connections", which was duplicated and its first appearance was right before a reload of the container, so in some cases we were trying to connect to non-working DBMS. Now we use a unique line.
- Loading branch information
Showing
5 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
spring/spring-web/src/test/java/io/quarkus/ts/spring/web/MariaDBUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.quarkus.ts.spring.web; | ||
|
||
public class MariaDBUtils { | ||
public static final int PORT = 3306; | ||
public static final String START_LOG = "socket: '/run/mysqld/mysqld.sock' port: " + PORT; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters