Use a faster nettest for testing

This commit is contained in:
Arturo Filastò 2019-12-02 18:00:12 +02:00
parent ccdff3ba24
commit b7deb6c88f

View File

@ -36,11 +36,11 @@ func TestRun(t *testing.T) {
if err != nil {
t.Fatal(err)
}
res, err := database.CreateResult(ctx.DB, ctx.Home, "im", network.ID)
res, err := database.CreateResult(ctx.DB, ctx.Home, "middlebox", network.ID)
if err != nil {
t.Fatal(err)
}
nt := Telegram{}
nt := HTTPInvalidRequestLine{}
ctl := NewController(nt, ctx, res)
nt.Run(ctl)
}