From f125e9f19b5461f03bfbfa35a7fb64339a8a9f27 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 13 Aug 2021 15:02:46 +0200 Subject: atb: Simplify --- atb/atb_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atb/atb_test.go b/atb/atb_test.go index 0aaf0cb..a39989f 100644 --- a/atb/atb_test.go +++ b/atb/atb_test.go @@ -24,7 +24,7 @@ func TestGetBusStops(t *testing.T) { atb := Client{URL: server.URL} expected := BusStops{ Stops: []BusStop{ - BusStop{ + { StopID: 100633, NodeID: "16011376", Description: "Prof. Brochs gt", @@ -52,7 +52,7 @@ func TestGetRealTimeForecast(t *testing.T) { expected := Forecasts{ Total: 1, Nodes: []NodeInfo{ - NodeInfo{ + { Name: "AtB", NodeID: "16011376", NodeName: "Prof.", @@ -64,7 +64,7 @@ func TestGetRealTimeForecast(t *testing.T) { }, }, Forecasts: []Forecast{ - Forecast{ + { LineID: "6", LineDescription: "6", RegisteredDepartureTime: "26.02.2015 18:38", -- cgit v1.2.3