Added random URLs to help with CIs.
This commit is contained in:
parent
7aaa46e9f4
commit
4972e8e5d8
2 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ class PinboardTest : LocalProperties() {
|
|||
@Test
|
||||
fun testPinboard() {
|
||||
val apiToken = getProperty("pinboard-api-token")
|
||||
val url = "https://www.example.com/"
|
||||
val url = "https://www.example.com/${(1000..5000).random()}"
|
||||
val ircServer = "irc.test.com"
|
||||
val entry = EntryLink(url, "Test Example", "ErikT", "", "#mobitopia", listOf("test"))
|
||||
|
||||
|
@ -55,7 +55,7 @@ class PinboardTest : LocalProperties() {
|
|||
pinboard.addPin(ircServer, entry)
|
||||
assertTrue(validatePin(apiToken, url = entry.link, entry.title, entry.nick, entry.channel), "validate add")
|
||||
|
||||
entry.link = "https://www.foo.com/"
|
||||
entry.link = "https://www.example.com/${(5001..9999).random()}"
|
||||
pinboard.updatePin(ircServer, url, entry)
|
||||
assertTrue(validatePin(apiToken, url = entry.link, ircServer), "validate update")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue