Skip to content

Commit

Permalink
repo_fake: muutations are now allowed after adding to a config
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Nov 17, 2024
1 parent 2917cbb commit f79fa35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo_fake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ func TestFakeRepoExtend(t *testing.T) {
assert.Equal(t, repo.Len(), 2)
assert.Nil(t, err)

// error when added to a config
// mutations allowed after adding to a config
config := NewConfig()
defer config.Close()
err = config.AddRepo(repo)
assert.Nil(t, err)
err = repo.Extend([]string{"cat/pkg-3"})
assert.NotNil(t, err)
assert.Nil(t, err)
}

func TestFakeRepoIter(t *testing.T) {
Expand Down

0 comments on commit f79fa35

Please sign in to comment.