Skip to content

Commit

Permalink
Update tests (remove deprecation)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr committed Sep 12, 2022
1 parent 91e3d7c commit a5ff876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repository/alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package repository

import (
"github.com/stretchr/testify/assert"
"io/ioutil"
"os"
"testing"
)

func TestAliasRepository_CreateInvalidName(t *testing.T) {
file, err := ioutil.TempFile("", "alias_test")
file, err := os.CreateTemp("", "alias_test")
assert.NoError(t, err)

InitAliasRepository(file.Name())
Expand All @@ -22,7 +22,7 @@ func TestAliasRepository_CreateInvalidName(t *testing.T) {
}

func TestAliasRepository_CreateValidName(t *testing.T) {
file, err := ioutil.TempFile("", "alias_test")
file, err := os.CreateTemp("", "alias_test")
assert.NoError(t, err)

InitAliasRepository(file.Name())
Expand Down

0 comments on commit a5ff876

Please sign in to comment.