Require go1.7 for compilation #2154
* Update the travis tests to exclude go1.6 * Update the compile check to require go1.7+ * Update misc go1.6 workarounds marked in the source
This commit is contained in:
parent
32e02bd367
commit
67023f0040
4 changed files with 8 additions and 9 deletions
|
@ -49,7 +49,7 @@ func TestDurationString(t *testing.T) {
|
|||
in time.Duration
|
||||
want string
|
||||
}{
|
||||
// {time.Duration(0), "0s"}, doesn't work on go1.6
|
||||
{time.Duration(0), "0s"},
|
||||
{time.Second, "1s"},
|
||||
{time.Minute, "1m0s"},
|
||||
{time.Duration(DurationOff), "off"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue