]> git.giacomolli.uk - onechat/blobdiff - turn_test.go
Separate returns from longer statement blocks
[onechat] / turn_test.go
index 2763965ea6ad1d6343f49af0f2cfb2685fe28a36..5d93e08709f4432ff982f55908b1cb19d388a34b 100644 (file)
@@ -208,7 +208,7 @@ func TestInterruptEndsTheTurn(t *testing.T) {
 
 func TestFailedCallEndsTheTurnWithoutARetry(t *testing.T) {
        server := newModelFake(t)
 
 func TestFailedCallEndsTheTurnWithoutARetry(t *testing.T) {
        server := newModelFake(t)
-       server.reply = func(w http.ResponseWriter, call ModelFakeCall) {
+       server.reply = func(w http.ResponseWriter, _ ModelFakeCall) {
                http.Error(w, "busy", http.StatusServiceUnavailable)
        }
 
                http.Error(w, "busy", http.StatusServiceUnavailable)
        }