Router table.Read replaces List/Query (#1966)

* Table.REad insted of list and query

* fmt
This commit is contained in:
Asim Aslam
2020-08-23 13:10:48 +01:00
committed by GitHub
parent fc54503232
commit 82e8298b73
10 changed files with 44 additions and 680 deletions

View File

@@ -99,7 +99,7 @@ func TestList(t *testing.T) {
}
}
routes, err := table.List()
routes, err := table.Read()
if err != nil {
t.Fatalf("error listing routes: %s", err)
}
@@ -116,7 +116,7 @@ func TestQuery(t *testing.T) {
t.Fatalf("error adding route: %s", err)
}
rt, err := table.Query(route.Service)
rt, err := table.Read(router.ReadService(route.Service))
if err != nil {
t.Fatal("Expected a route got err", err)
}