refactor(inputloader): remove unnecessary javisms (#271)
Part of https://github.com/ooni/probe/issues/1299.
This commit is contained in:
parent
1da64f6d9f
commit
b718335ee3
5 changed files with 59 additions and 101 deletions
|
|
@ -30,10 +30,10 @@ func TestInputLoaderInputOrQueryBackendWithNoInput(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
defer sess.Close()
|
||||
il := engine.NewInputLoader(engine.InputLoaderConfig{
|
||||
il := &engine.InputLoader{
|
||||
InputPolicy: engine.InputOrQueryBackend,
|
||||
Session: sess,
|
||||
})
|
||||
}
|
||||
ctx := context.Background()
|
||||
out, err := il.Load(ctx)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue