Skip to content

Commit

Permalink
Fixup 00 cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Mar 1, 2023
1 parent a33b31a commit 0bd116f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/test/e2e/00_use_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,9 @@ func TestUseCLI(t *testing.T) {
e2e.cleanFiles(pkgName)

files, err := os.ReadDir(imageCachePath)
require.NoError(t, err, "Error when reading image cache path")
require.NoError(t, err, "Encountered an unexpected error when reading image cache path")
assert.Greater(t, len(files), 1)

pkgName = fmt.Sprintf("zarf-package-git-data-%s-v1.0.0.tar.zst", e2e.arch)

// Pull once to test git cloning
stdOut, stdErr, err = e2e.execZarfCommand("package", "create", "examples/git-data", "--confirm", "--zarf-cache", cachePath, "--tmpdir", otherTmpPath)
require.NoError(t, err, stdOut, stdErr)

// Pull twice to test git fetching (from cache)
stdOut, stdErr, err = e2e.execZarfCommand("package", "create", "examples/git-data", "--confirm", "--zarf-cache", cachePath, "--tmpdir", otherTmpPath)
require.NoError(t, err, stdOut, stdErr)

// Test removal of cache
stdOut, stdErr, err = e2e.execZarfCommand("tools", "clear-cache", "--zarf-cache", cachePath)
require.NoError(t, err, stdOut, stdErr)
Expand Down

0 comments on commit 0bd116f

Please sign in to comment.