Skip to content

Commit

Permalink
Merge pull request #1 from ivanscattergood/ivanscattergood-ticket-303
Browse files Browse the repository at this point in the history
Added test for multiple backslashes
  • Loading branch information
Ivan Scattergood authored Mar 24, 2017
2 parents 5ebba84 + 7ced901 commit 944c0da
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/test/java/org/influxdb/TicketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,30 @@ public void testTicket40() {
}
this.influxDB.deleteDatabase(dbName);
}

/**
* Test for ticket #303
*
*/
@Test
public void testTicket303() {
String dbName = "ticket303_" + System.currentTimeMillis();
this.influxDB.createDatabase(dbName);


Date rundate1 = new Date() ;
long rundate1Sec = rundate1.getTime() / 1000;



Point point1 = Point
.measurement("TestSlash")
.time(rundate1Sec, TimeUnit.SECONDS)
.tag("precision", "Second")
.addField("MultipleSlash" , "echo \\\".ll 12.0i\\\";")
.build();
this.influxDB.write(dbName, TestUtils.defaultRetentionPolicy(this.influxDB.version()), point1);
this.influxDB.deleteDatabase(dbName);
}

}

0 comments on commit 944c0da

Please sign in to comment.