1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig
Yong Tang d365c0e151 Fix failed test for TestRestartPolicy
This commit is a follow up of the last commit:
Vendor engine-api to allow docker daemon reload event.

After vendor/engine-api has been updated, the following
unit test fails:
```
--- FAIL: TestRestartPolicy (0.00s)
       hostconfig_test.go:177: RestartPolicy.IsNone for { 0} should have been false but was true
```

The reason for the above failed unit test is that pull request:

https://github.com/docker/engine-api/pull/200

updated behavior of the restart policy and makes restartpolicy.IsNone
return true if restart policy name is `""`. As a result, the above
mentioned unit test fails.

This fix fixes the inconsistency of the unit test so that `TestRestartPolicy`
could pass again.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-13 20:39:35 -07:00
..
fixtures
opts Merge pull request #21641 from yongtang/21595-discrepancy-on-hostname-validation 2016-04-28 09:25:13 +02:00
compare.go
compare_test.go
config.go Add IO Resource Controls for Windows 2016-04-25 13:07:29 -07:00
config_test.go
config_unix.go fix some typos. 2016-03-10 10:09:27 +08:00
config_windows.go fix some typos. 2016-03-10 10:09:27 +08:00
errors.go
hostconfig.go
hostconfig_test.go Fix failed test for TestRestartPolicy 2016-05-13 20:39:35 -07:00
hostconfig_unix.go Add IO Resource Controls for Windows 2016-04-25 13:07:29 -07:00
hostconfig_windows.go Add IO Resource Controls for Windows 2016-04-25 13:07:29 -07:00
streams.go Improve performance/reduce allocs of bytespipe 2016-04-05 13:06:04 -04:00