Skip to content

Commit e4be0ef

Browse files
committed
Test issue
1 parent d36baff commit e4be0ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/UriParserTest.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,13 @@ namespace influxdb::test
8080
CHECK(parse("http://token@xyz.com").password == "token");
8181
}
8282

83+
TEST_CASE("#280 repro", "[UriParserTest]")
84+
{
85+
const auto url = parse("http://virtualmachineIPaddr:8086?db=plc_data_db");
86+
CHECK(url.protocol == "http");
87+
CHECK(url.host == "virtualmachineIPaddr");
88+
CHECK(url.port == 8086);
89+
CHECK(url.search == "db=plc_data_db");
90+
}
91+
8392
}

0 commit comments

Comments
 (0)