Use a faster nettest for testing
This commit is contained in:
parent
ccdff3ba24
commit
b7deb6c88f
|
@ -36,11 +36,11 @@ func TestRun(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
nt := Telegram{}
|
nt := HTTPInvalidRequestLine{}
|
||||||
ctl := NewController(nt, ctx, res)
|
ctl := NewController(nt, ctx, res)
|
||||||
nt.Run(ctl)
|
nt.Run(ctl)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user