Go Challenge tests changed after the start

xuanbao · 2015-04-04 09:02:40 · 925 次点击    
这是一个分享于 2015-04-04 09:02:40 的资源,其中的信息可能已经有所发展或是发生改变。

3rd April 2015: Guillaume has made 2 changes to the test files:

The first change is minor and concerns Window user with dual stack. He has changed the net.Listen("tcp", ":0") to net.Listen("tcp", "127.0.0.1:0"). This shouldn't change anything for most people.

The second is more problematic and would impact people using io.Copy. In TestReadWritePing, he has moved the w.Close() in the writing goroutine just like in the other tests.

https://gist.github.com/creack/333f89f6aec5b789c1a0/revisions


评论:

captncraig:

Thanks for the heads up.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

925 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传