]> Cypherpunks repositories - gostls13.git/commit
build: fix race in doc/articles/wiki test
authorRick Arnold <rickarnoldjr@gmail.com>
Tue, 18 Mar 2014 02:03:03 +0000 (13:03 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 18 Mar 2014 02:03:03 +0000 (13:03 +1100)
commit1f1f69e389a30fd8941789fd04bfd946c9aa39fc
treeec9664a0389fd75b4f3431ed9844ff707fec17b9
parente45f5cd5f17c88f979adcbebaa3bead9b0d7cc1f
build: fix race in doc/articles/wiki test

The original test would open a local port and then immediately close it
and use the port number in subsequent tests. Between the port being closed
and reused by the later process, it could be opened by some other program
on the machine.

Changed the test to run the server process directly and have it save the
assigned port to a text file to be used by client processes.

Fixes #5564.

LGTM=adg
R=golang-codereviews, gobot, adg
CC=golang-codereviews
https://golang.org/cl/72290043
doc/articles/wiki/Makefile
doc/articles/wiki/final.go
doc/articles/wiki/test.bash