You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler will complain about your _first test_ only looking for one value so change that line to `got, err := Racer(slowURL, fastURL)`, knowing that we should check we _don't_ get an error in our happy scenario.
you are missing the implementation for
iferr!=nil {
t.Fatalf("did not expect an error but got one %v", err)
}
because if we add the err here in got, err := Racer(slowURL, fastURL), the compiler will complain about err being unused here.
I know that the aforementioned if condition is mentioned afterwards, but it should have been demonstrated immediately after the err suggestion.
The text was updated successfully, but these errors were encountered:
In this suggestion,
learn-go-with-tests/select.md
Line 318 in 11abe1f
you are missing the implementation for
because if we add the
err
here ingot, err := Racer(slowURL, fastURL)
, the compiler will complain abouterr
being unused here.I know that the aforementioned
if
condition is mentioned afterwards, but it should have been demonstrated immediately after theerr
suggestion.The text was updated successfully, but these errors were encountered: