Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test in InfluxDBSinkTest. (apache#6682)
### Motivation In some new added pull requests the `CI - Unit / unit-tests` failed as below: ``` [ERROR] testJsonSchema on testJsonSchema(org.apache.pulsar.io.influxdb.v2.InfluxDBSinkTest)(org.apache.pulsar.io.influxdb.v2.InfluxDBSinkTest) Time elapsed: 0.026 s <<< FAILURE! java.lang.AssertionError: expected: java.lang.String<1586235436221> but was: java.lang.Long<1586235436221> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:144) at org.apache.pulsar.io.influxdb.v2.InfluxDBSinkTest.testJsonSchema(InfluxDBSinkTest.java:110) ``` ### Modifications Just compare the `String` type when using `GenericJsonSchema` to pass the unit tests.
- Loading branch information