Skip to content

Commit

Permalink
fix: hardened lazy test
Browse files Browse the repository at this point in the history
Signed-off-by: Fritz Duchardt <[email protected]>
  • Loading branch information
fritzduchardt authored and kumari tanushree committed Dec 5, 2023
1 parent d317728 commit bdc851e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/example_lazy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ func TestExampleLazy(t *testing.T) {
// run lazy sync
_, err := vendir.RunWithOpts([]string{"sync", "-f=vendir-lazy.yml"}, RunOpts{Dir: path, Env: osEnv})
require.NoError(t, err)
require.DirExists(t, path+"/vendor/dir")

// rerun lazy sync for good measure
_, err = vendir.RunWithOpts([]string{"sync", "-f=vendir-lazy.yml"}, RunOpts{Dir: path, Env: osEnv})
require.NoError(t, err)
require.DirExists(t, path+"/vendor/dir")

// check that the lock file has config digest
lockConf, err := ctlconf.NewLockConfigFromFile(path + "/vendir.lock.yml")
Expand Down

0 comments on commit bdc851e

Please sign in to comment.