Skip to content

Commit b2366eb

Browse files
authored
chore(ci): add InfluxDB 2.1 to pipeline (#784)
1 parent df45710 commit b2366eb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/master.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
jdk: [3-openjdk-17-slim, 3-jdk-14, 3-jdk-8-slim]
15-
influxdb: ['1.1', '1.6', '1.8', '2.0']
15+
influxdb: ['1.1', '1.6', '1.8', '2.0', '2.1']
1616

1717
steps:
1818
- name: Checkout
@@ -26,6 +26,7 @@ jobs:
2626

2727
- name: codecov
2828
run: bash <(curl -s https://codecov.io/bash)
29+
if: matrix.influxdb != '2.0' && matrix.influxdb != '2.1'
2930

3031

3132
# deploy:

.github/workflows/pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
jdk: [3-openjdk-17-slim, 3-jdk-14, 3-jdk-8-slim]
15-
influxdb: ['1.1', '1.6', '1.8', '2.0']
15+
influxdb: ['1.1', '1.6', '1.8', '2.0', '2.1']
1616

1717
steps:
1818
- name: Checkout
@@ -30,4 +30,4 @@ jobs:
3030

3131
- name: codecov
3232
run: bash <(curl -s https://codecov.io/bash)
33-
if: matrix.influxdb != '2.0'
33+
if: matrix.influxdb != '2.0' && matrix.influxdb != '2.1'

compile-and-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ docker run \
4444
echo "Running tests"
4545
PROXY_API_URL=http://nginx:8080/influx-api/
4646
PROXY_UDP_PORT=8080
47-
if [[ "$INFLUXDB_VERSION" == "2.0" ]]
47+
if [[ "$INFLUXDB_VERSION" == "2."* ]]
4848
then
4949
TEST_EXPRESSION="InfluxDB2Test"
5050
# Wait to start InfluxDB

src/test/java/org/influxdb/BatchOptionsTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@ public void testHandlerOnRetryImpossible() throws InterruptedException {
466466

467467
writeSomePoints(influxDB, 1);
468468

469-
Thread.sleep(200);
470-
verify(mockHandler, times(1)).accept(any(), any());
469+
verify(mockHandler, timeout(500).times(1)).accept(any(), any());
471470

472471
QueryResult result = influxDB.query(new Query("select * from weather", dbName));
473472
Assertions.assertNull(result.getResults().get(0).getSeries());

src/test/java/org/influxdb/InfluxDB2Test.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @author Jakub Bednar (30/08/2021 11:31)
1919
*/
2020
@RunWith(JUnitPlatform.class)
21-
@EnabledIfEnvironmentVariable(named = "INFLUXDB_VERSION", matches = "2\\.0")
21+
@EnabledIfEnvironmentVariable(named = "INFLUXDB_VERSION", matches = "2\\..")
2222
public class InfluxDB2Test {
2323

2424
private InfluxDB influxDB;

0 commit comments

Comments
 (0)