Verified Commit 703225ae authored by Jeffrey H. Johnson's avatar Jeffrey H. Johnson
Browse files

Optimize a few test cases, remove dead code.

parent 89b23eb7
......@@ -365,9 +365,7 @@ func test(
binary.Write(
buf,
binary.LittleEndian,
uint32(
current,
),
)
gfcp1.Send(
buf.Bytes(),
......@@ -452,9 +450,7 @@ func test(
binary.LittleEndian,
&ts,
)
rtt = uint32(
current,
) - ts
rtt = (current - ts)
 
if sn != uint32(
next,
......
......@@ -11,5 +11,5 @@ require (
go4.org v0.0.0-20201209231011-d4a079459e60
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
golang.org/x/sys v0.0.0-20210112091331-59c308dcf3cc // indirect
golang.org/x/tools v0.0.0-20210111221946-d33bae441459 // indirect
golang.org/x/tools v0.0.0-20210112183307-1e6ecd4bf1b0 // indirect
)
......@@ -211,6 +211,8 @@ golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapK
golang.org/x/tools v0.0.0-20210107193943-4ed967dd8eff/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210111221946-d33bae441459 h1:/pJfBBZw1zeMQA6vRpalDcuw4VJ/B6+N5obtmG0Xiv8=
golang.org/x/tools v0.0.0-20210111221946-d33bae441459/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210112183307-1e6ecd4bf1b0 h1:iZhiQWrjyEuXG495d9MXkcmhrlxbQyGp0uNBY+YBZDk=
golang.org/x/tools v0.0.0-20210112183307-1e6ecd4bf1b0/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment