From d57b9ca482a2afbfc7caf75ee3f190284f6921cf Mon Sep 17 00:00:00 2001 From: Dave Shanley Date: Mon, 5 Sep 2022 13:23:12 -0400 Subject: [PATCH] Fixed borked index test --- index/spec_index_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index/spec_index_test.go b/index/spec_index_test.go index 9e05500..d3640ca 100644 --- a/index/spec_index_test.go +++ b/index/spec_index_test.go @@ -509,11 +509,11 @@ func TestSpecIndex_lookupRemoteReference_SeenSourceSimulation_BadFind(t *testing func TestSpecIndex_lookupRemoteReference_SeenSourceSimulation_BadJSON(t *testing.T) { index := new(SpecIndex) - a, b, err := index.lookupRemoteReference("https://google.com#/hey") + index.seenRemoteSources = make(map[string]*yaml.Node) + a, b, err := index.lookupRemoteReference("https://google.com//logos/doodles/2022/labor-day-2022-6753651837109490.3-l.png#/hey") assert.Error(t, err) assert.Nil(t, a) assert.Nil(t, b) - } func TestSpecIndex_lookupFileReference_BadFileName(t *testing.T) {