Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: add just some logs for more info when client disconnects #9

Merged
merged 2 commits into from
Jul 10, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tunnel_test: some changes to improve tests on travis
  • Loading branch information
fatih committed Jul 10, 2015
commit b9635841a27ac9721d8962863e8df7fd8367e40d
5 changes: 4 additions & 1 deletion tunnel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func TestMultipleLatencyRequest(t *testing.T) {
wg.Add(1)

go func(i int) {
defer wg.Done()
msg := "hello" + strconv.Itoa(i)
res, err := makeRequest(tenv.remoteListener.Addr().String(), msg)
if err != nil {
Expand All @@ -145,6 +144,7 @@ func TestMultipleLatencyRequest(t *testing.T) {
if res != msg {
t.Errorf("Expecting %s, got %s", msg, res)
}
wg.Done()
}(i)
}

Expand Down Expand Up @@ -255,6 +255,9 @@ func TestSingleLatencyRequest(t *testing.T) {
t.Fatal(err)
}

// wait til the environment is ready, just for test
time.Sleep(time.Second * 2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will create problems eventually, we can find a better way to handle synchronization later


msg := "hello"
res, err := makeRequest(tenv.remoteListener.Addr().String(), msg)
if err != nil {
Expand Down