* Update go.yml * provision docker * fix use * fix use * migration to workflows * fix dep * refactor workflows * setup golang env * fix path issue * fix path issue * Fix * clean up * provision docker * start fx agent * check * check * Squashed commit of the following: commit c7f50a3256164573f1f7910c4b79729c91f77af7 Author: Minghe Huang <h.minghe@gmail.com> Date: Mon Aug 12 08:13:54 2019 +0800 update commite5ba0ea5afAuthor: Minghe Huang <h.minghe@gmail.com> Date: Sun Aug 11 23:53:38 2019 +0800 test commitaec09957f9Author: Minghe Huang <h.minghe@gmail.com> Date: Sun Aug 11 23:38:37 2019 +0800 add unit test commit59ac78a112Author: Minghe Huang <h.minghe@gmail.com> Date: Sun Aug 11 22:52:51 2019 +0800 refactor api * Squashed commit of the following: commit caa7e06fee72f345c6fad742f30a740f1c3de04d Author: Minghe Huang <h.minghe@gmail.com> Date: Mon Aug 12 13:42:54 2019 +0800 refactor api commit a384c6c023325da36fa54818c1c69673c439f8af Author: Minghe Huang <h.minghe@gmail.com> Date: Mon Aug 12 09:58:21 2019 +0800 move packer * disable test * manage dep
16 lines
246 B
Go
16 lines
246 B
Go
package utils
|
|
|
|
import "testing"
|
|
|
|
func TestDockerVersion(t *testing.T) {
|
|
host := "localhost"
|
|
port := "8866"
|
|
version, err := DockerVersion(host, port)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if version == "" {
|
|
t.Fatal("should version empty")
|
|
}
|
|
}
|