textCallRound holds text from where a written call may begin, and gives
it back at KStop. A round whose channel closes without a KStop is one
searchRounds takes as ended, and its held text was lost with it. The
routes without a search give it back at their reply's end
(gateway.go's held(), continuation.go's release), and the round now
does the same after its loop.
The previous commit's doc comment for textCallRound had also been put
between searchReply's comment and its func. searchReply's comment is
back on searchReply.
TestTextCallRoundReleasesHeldAtEnd: a round that sends "Let me look."
and the start of a DSML call, then closes.
Broken by hand: the t.release() taken out. Red: it handed on only
"Let me look.\n\n".
Run (on mote, through mote-run):
- Full `go test -tags nogui -count=1 -timeout 45m ./...` with this stack
on c30d3b7b6: 82 packages ok. internal/gui was red only on
TestSettingsSaveKeepsWhatItDoesNotSend (#4514, SearchAll from
b09349d17) and TestColdTurnsTaken (#4510). Both are filed, and neither
touches this stack.
- Rebased onto 29d0ab39f, which changed internal/gateway since then:
gofmt -l, go vet (darwin, GOOS=linux -tags nogui, GOOS=windows) and
go test -count=1 ./internal/gateway ./internal/usage ./internal/provider
./internal/sessions all ok at the pushed head. go build ./... ok for
darwin, linux (nogui) and windows.
- go test -race of the gateway tests this stack adds or touches, on
the stack at fb29cd30f: ok.