allow tiny time diff in expect
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m46s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m46s
This commit is contained in:
@@ -69,7 +69,7 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
|
||||
}
|
||||
|
||||
func (p *PacketQueue) Expect(messageType uint16, timeToWait time.Duration) (*PacketWithData, error) {
|
||||
start := time.Now().Add(-time.Millisecond)
|
||||
start := time.Now().Add(-time.Millisecond * 5)
|
||||
|
||||
for {
|
||||
if time.Since(start) > timeToWait {
|
||||
|
||||
Reference in New Issue
Block a user