From 62d603f1a6be23cec25f3d18e84777ecfa318612 Mon Sep 17 00:00:00 2001 From: ET Date: Sun, 16 Aug 2020 20:04:53 -0700 Subject: [PATCH] Build on newly released version of go, go 1.15 (#1064) * Build on newly release version of go, go 1.15 Remove 1.13 build job per policy of supporting past two releases. * String conversions in 1.15 require byte, rune or string. Simply passing an integer now issues a warning. --- .circleci/config.yml | 4 ++-- sdk/export/metric/exportkind_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1fd0c09eb..d8ec65f03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,11 +3,11 @@ executors: current-go: resource_class: large docker: - - image: cimg/go:1.14 + - image: cimg/go:1.15 prior-go: resource_class: large docker: - - image: cimg/go:1.13 + - image: cimg/go:1.14 build-template: &build-template environment: diff --git a/sdk/export/metric/exportkind_test.go b/sdk/export/metric/exportkind_test.go index d3ba61f6a..36b368e82 100644 --- a/sdk/export/metric/exportkind_test.go +++ b/sdk/export/metric/exportkind_test.go @@ -24,7 +24,7 @@ import ( ) func TestExportKindIdentity(t *testing.T) { - akind := aggregation.Kind(0) + akind := aggregation.Kind("Noop") require.Equal(t, CumulativeExporter, CumulativeExporter.ExportKindFor(nil, akind)) require.Equal(t, DeltaExporter, DeltaExporter.ExportKindFor(nil, akind))