summaryrefslogtreecommitdiffstats
path: root/nws/nws_test.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-07-02 12:36:13 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-07-02 12:36:13 -0400
commitb2c09967704a048fbd5168e6930a7626dcaf98f2 (patch)
tree43e947dbc9cbca31db193b1024f4bf2421a7d0b8 /nws/nws_test.go
parent64dd223fcc24755956819bad3dcba3ad047b09e8 (diff)
nws: update `GetForecastHourly`
Change return error type to `nws.Error`
Diffstat (limited to 'nws/nws_test.go')
-rw-r--r--nws/nws_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/nws/nws_test.go b/nws/nws_test.go
index 2b29ca1..88f1c2b 100644
--- a/nws/nws_test.go
+++ b/nws/nws_test.go
@@ -113,9 +113,9 @@ func TestGetForecastHourly(t *testing.T) {
}
// Get forecast hourly.
- fc, err := GetForecastHourly(np)
- if err != nil {
- t.Errorf("error: %v", err)
+ fc, nwsErr := GetForecastHourly(np)
+ if nwsErr != nil {
+ t.Errorf("error: %v", nwsErr)
return
}