From 2e1c3939516025ee1faddd4c6db3506f7acb2a1d Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Fri, 8 Dec 2023 14:48:02 +0100 Subject: [PATCH] fix warnings about deprecated actions --- .github/workflows/build.yml | 6 +++--- client_test.go | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3dec5d3..d9f3be2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,15 +9,15 @@ jobs: matrix: version: [1.13, 1.15, 1.16] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: Checkout code - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: Checkout client specifications with: repository: Unleash/client-specification ref: refs/tags/v5.1.0 path: testdata/client-specification - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 name: Setup go with: go-version: ${{ matrix.version }} diff --git a/client_test.go b/client_test.go index 6dae44e..f7e80b9 100644 --- a/client_test.go +++ b/client_test.go @@ -53,7 +53,8 @@ func TestClientWithoutListener(t *testing.T) { }() <-client.Registered() <-client.Ready() - client.Close() + err = client.Close() + assert.Nil(err) assert.True(gock.IsDone(), "there should be no more mocks") }