Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Update idl (#63)
Browse files Browse the repository at this point in the history
* Update IDL
* Fix flaky test
  • Loading branch information
black-adder authored Oct 31, 2016
1 parent 79e268d commit d5c7fab
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 147 deletions.
2 changes: 1 addition & 1 deletion idl
Submodule idl updated from 253364 to 5054a0
290 changes: 145 additions & 145 deletions thrift-gen/sampling/ttypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion transport/udp/transport_udp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ func TestUDPSenderFlush(t *testing.T) {
assert.Equal(t, 0, udpSender.byteBufferSize, "buffer size counter should go to 0")
assert.Nil(t, buffer[0], "buffer should not keep reference to the span")

time.Sleep(5 * time.Millisecond)
for i := 0; i < 10000; i++ {
spans := agent.GetZipkinSpans()
if len(spans) > 0 {
break
}
time.Sleep(1 * time.Millisecond)
}
spans := agent.GetZipkinSpans()
require.Equal(t, 1, len(spans), "agent should have received the span")
assert.Equal(t, span.Name, spans[0].Name)
Expand Down

0 comments on commit d5c7fab

Please sign in to comment.