use go 1.15

This commit is contained in:
Alessio Treglia
2020-11-09 18:41:34 +00:00
parent f2876f4ece
commit 3b4124bb40
2 changed files with 5 additions and 5 deletions

View File

@@ -52,6 +52,10 @@ jobs:
with:
name: "${{ github.sha }}-${{ matrix.part }}"
if: env.GIT_DIFF
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: test & coverage report creation
run: |
cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 8m -race -coverprofile=${{ matrix.part }}profile.out -covermode=atomic

View File

@@ -5,8 +5,6 @@ package trust
import (
"fmt"
"io/ioutil"
"os"
"testing"
"github.com/stretchr/testify/assert"
@@ -17,9 +15,7 @@ import (
)
func TestTrustMetricStoreSaveLoad(t *testing.T) {
dir, err := ioutil.TempDir("", "trust_test")
require.NoError(t, err)
defer os.Remove(dir)
dir := t.TempDir()
historyDB, err := dbm.NewDB("trusthistory", "goleveldb", dir)
require.NoError(t, err)