From ce0621c094742b73b33e36a69975993ce9ccde96 Mon Sep 17 00:00:00 2001 From: Andre Cloutier Date: Thu, 26 Jan 2017 10:20:09 -0800 Subject: [PATCH] Fixed up tests and bumped go version --- .travis.yml | 2 +- args_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a133059..c4c9639 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: go go: -- 1.5.3 +- 1.7.4 addons: apt: packages: diff --git a/args_test.go b/args_test.go index 2802285..73483c0 100644 --- a/args_test.go +++ b/args_test.go @@ -64,7 +64,7 @@ func (t *TestSuite) Test_binArgs_parse(c *C) { "-V", } - verOut := fmt.Sprintf("cronner v%s built with %s\nCopyright 2015 PagerDuty, Inc.; released under the BSD 3-Clause License\n", Version, runtime.Version()) + verOut := fmt.Sprintf("cronner v%s built with %s\nCopyright 2017 PagerDuty, Inc.; released under the BSD 3-Clause License\n", Version, runtime.Version()) output, err = args.parse(cli) c.Assert(err, IsNil) @@ -122,7 +122,7 @@ func (t *TestSuite) Test_binArgs_parse(c *C) { "-F", "-G", "test_group", "-g", "metric_group", - "-H", 'test_host', + "-H", "test_host", "-k", "-l", "test", "-L", "info", @@ -171,7 +171,7 @@ func (t *TestSuite) Test_binArgs_parse(c *C) { "--log-fail", "--event-group", "test_group", "--group", "metric_group", - "--statsd-host", 'test_host', + "--statsd-host", "test_host", "--lock", "--label", "test", "--log-path", "/var/log/testcronner", @@ -218,7 +218,7 @@ func (t *TestSuite) Test_binArgs_parse(c *C) { "--group=metric_group", "--label=test", "--log-path=/var/log/testcronner", - "--statsd-host=test_host" + "--statsd-host=test_host", "--log-level=info", "--namespace=testcronner", "--warn-after=42",