mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[linkcheck] Remove flaky test
caused by domaingrabber grabbing some random domain Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e7e9877c05
commit
35b47bca65
1 changed files with 1 additions and 2 deletions
|
@ -179,8 +179,7 @@ func TestScanForLinks(t *testing.T) {
|
|||
},
|
||||
// Case: false positives
|
||||
{Heuristic: true, Message: "game dot exe has stopped working", ExpectedLinks: nil},
|
||||
{Heuristic: false, Message: "You're following since 12.12.2020 DogChamp", ExpectedLinks: nil},
|
||||
{Heuristic: true, Message: "You're following since 12.12.2020 DogChamp", ExpectedLinks: []string{"http://You.re"}},
|
||||
{Heuristic: true, Message: "You are following since 12.12.2020 DogChamp", ExpectedLinks: nil},
|
||||
{Heuristic: false, Message: "Hey btw. es kann sein, dass", ExpectedLinks: nil},
|
||||
} {
|
||||
t.Run(fmt.Sprintf("h:%v lc:%d m:%s", testCase.Heuristic, len(testCase.ExpectedLinks), testCase.Message), func(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue