Skip to content

Commit a123ada

Browse files
fix: write error handling
1 parent 48100bb commit a123ada

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/test/java/com/influxdb/v3/client/internal/RestClientTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,7 @@ private List<PartialWriteTestCase> testCases() {
790790
400,
791791
"application/json",
792792
"{\"error\":\"line protocol parsing error\",\"data\":{\"error_message\":\""
793-
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\""
794-
+ REJECTED_LINE_JSON + "\"}}",
793+
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\"" + REJECTED_LINE_JSON + "\"}}",
795794
false,
796795
false,
797796
"HTTP status code: 400; Message: line protocol parsing error:\n\tline 2: "
@@ -804,8 +803,7 @@ private List<PartialWriteTestCase> testCases() {
804803
"application/json",
805804
"{\"error\":\"partial write of line protocol occurred\","
806805
+ "\"data\":[{\"error_message\":\""
807-
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\"" + REJECTED_LINE_JSON
808-
+ "\"}]}",
806+
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\"" + REJECTED_LINE_JSON + "\"}]}",
809807
true,
810808
true,
811809
"HTTP status code: 400; Message: partial write of line protocol occurred",
@@ -817,8 +815,7 @@ private List<PartialWriteTestCase> testCases() {
817815
"application/json",
818816
"{\"error\":\"partial write of line protocol occurred\","
819817
+ "\"data\":[{\"error_message\":\""
820-
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\""
821-
+ REJECTED_LINE_JSON
818+
+ LINE_ERROR + "\",\"line_number\":2,\"original_line\":\"" + REJECTED_LINE_JSON
822819
+ "\"}]}",
823820
false,
824821
true,

0 commit comments

Comments
 (0)