From 38203c8f4d5673d3c855d6408998948d335b25c8 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 3 Sep 2019 14:46:42 -0500 Subject: [PATCH] travis: Test go1.13 and drop go1.11. --- .travis.yml | 16 ++++++++-------- config_test.go | 2 -- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd0f8634..47aae23e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,25 +5,25 @@ env: matrix: include: - os: linux - go: 1.12.x + go: 1.13.x cache: directories: - $HOME/.cache/go-build - $HOME/go/pkg/mod - os: linux - go: 1.11.x - cache: - directories: - - $HOME/.cache/go-build - - $HOME/go/pkg/mod - - os: osx go: 1.12.x cache: directories: - $HOME/.cache/go-build - $HOME/go/pkg/mod - os: osx - go: 1.11.x + go: 1.13.x + cache: + directories: + - $HOME/.cache/go-build + - $HOME/go/pkg/mod + - os: osx + go: 1.12.x cache: directories: - $HOME/Library/Caches/go-build diff --git a/config_test.go b/config_test.go index bef70adb..2363fc00 100644 --- a/config_test.go +++ b/config_test.go @@ -5,7 +5,6 @@ package main import ( - "flag" "os" "strings" "testing" @@ -76,6 +75,5 @@ func TestAltDNSNamesWithArg(t *testing.T) { // init parses the -test.* flags from the command line arguments list and then // removes them to allow go-flags tests to succeed. func init() { - flag.Parse() os.Args = os.Args[:1] }