Move IM tests into top level tree too

This commit is contained in:
Arturo Filastò 2019-12-02 17:59:37 +02:00
commit ccdff3ba24
4 changed files with 8 additions and 26 deletions

View file

@ -36,17 +36,11 @@ func TestRun(t *testing.T) {
if err != nil {
t.Fatal(err)
}
res, err := database.CreateResult(ctx.DB, ctx.Home, tg, network.ID)
if err != nil {
t.Fatal(err)
}
builder, err := ctl.Ctx.Session.NewExperimentBuilder(
"telegram",
)
res, err := database.CreateResult(ctx.DB, ctx.Home, "im", network.ID)
if err != nil {
t.Fatal(err)
}
nt := Telegram{}
ctl := NewController(nt, ctx, res)
ctl.Run(builder, []string{""})
nt.Run(ctl)
}