Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Feb 1, 2024
1 parent aa4a488 commit 5cf76b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,11 +925,11 @@ func TestDiff_PathParamsDeleted(t *testing.T) {

s1, err := loader.LoadFromFile("../data/path-params/params_in_path.yaml")
require.NoError(t, err)
pathparams.Inherit(s1)
pathparams.Move(s1)

s2, err := loader.LoadFromFile("../data/path-params/no_params.yaml")
require.NoError(t, err)
pathparams.Inherit(s2)
pathparams.Move(s2)

d, _, err := diff.GetWithOperationsSourcesMap(diff.NewConfig(),
&load.SpecInfo{
Expand All @@ -947,11 +947,11 @@ func TestDiff_PathParamsMoved(t *testing.T) {

s1, err := loader.LoadFromFile("../data/path-params/params_in_path.yaml")
require.NoError(t, err)
pathparams.Inherit(s1)
pathparams.Move(s1)

s2, err := loader.LoadFromFile("../data/path-params/params_in_op.yaml")
require.NoError(t, err)
pathparams.Inherit(s2)
pathparams.Move(s2)

d, _, err := diff.GetWithOperationsSourcesMap(diff.NewConfig(),
&load.SpecInfo{
Expand All @@ -969,11 +969,11 @@ func TestDiff_PathParamsAdded(t *testing.T) {

s1, err := loader.LoadFromFile("../data/path-params/no_params.yaml")
require.NoError(t, err)
pathparams.Inherit(s1)
pathparams.Move(s1)

s2, err := loader.LoadFromFile("../data/path-params/params_in_path.yaml")
require.NoError(t, err)
pathparams.Inherit(s2)
pathparams.Move(s2)

d, _, err := diff.GetWithOperationsSourcesMap(diff.NewConfig(),
&load.SpecInfo{
Expand Down

0 comments on commit 5cf76b3

Please sign in to comment.