removed golang x package in favour of the std lib

This commit is contained in:
Emilien Puget
2024-06-15 09:55:44 +02:00
committed by quobix
parent f27d57aab0
commit cbe1201cbd
13 changed files with 22 additions and 31 deletions

View File

@@ -19,10 +19,9 @@ import (
"time"
"github.com/pb33f/libopenapi/utils"
"golang.org/x/sync/syncmap"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"sync"
)
const (
@@ -44,7 +43,7 @@ func TestSpecIndex_GetCache(t *testing.T) {
assert.True(t, ok)
// create a new cache
newCache := new(syncmap.Map)
newCache := new(sync.Map)
index.SetCache(newCache)
// check that the cache has been set.