fix flaky tests on Travis

This commit is contained in:
Marten Seemann
2016-06-11 12:02:16 +07:00
parent 9aea21f8d6
commit 459080a6dc
2 changed files with 3 additions and 3 deletions

View File

@@ -273,7 +273,7 @@ var _ = Describe("H2 server", func() {
Expect(err).NotTo(HaveOccurred())
close(done)
}()
time.Sleep(10 * time.Millisecond)
time.Sleep(50 * time.Millisecond)
err := s.Close()
Expect(err).NotTo(HaveOccurred())
}, 0.5)

View File

@@ -585,7 +585,7 @@ var _ = Describe("Session", func() {
StreamID: 5,
Data: []byte("foobar1"),
})
time.Sleep(10 * protocol.SmallPacketSendDelay)
time.Sleep(20 * protocol.SmallPacketSendDelay)
session.queueStreamFrame(&frames.StreamFrame{
StreamID: 5,
Data: []byte("foobar2"),
@@ -603,7 +603,7 @@ var _ = Describe("Session", func() {
StreamID: 5,
Data: []byte("foobar1"),
})
time.Sleep(10 * protocol.SmallPacketSendDelay)
time.Sleep(20 * protocol.SmallPacketSendDelay)
session.queueStreamFrame(&frames.StreamFrame{
StreamID: 5,
Data: []byte("foobar2"),