Skip to content

Commit

Permalink
test test tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 8, 2025
1 parent ce1031e commit e086c14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions esti/lakectl_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,6 @@ func TestLakectlLocal_commitProtetedBranch(t *testing.T) {
require.NoError(t, err)
require.NoError(t, fd.Close())
RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+dataDir, false, "local ║ added ║ test.txt", vars)
RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+dataDir, false, "local ║ added ║ subdir/test.txt", vars)
RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+dataDir, false, "local ║ added ║ subdir-a/test.txt", vars)

} else {
require.NoError(t, os.Remove(filepath.Join(dataDir, deleted)))
Expand All @@ -553,7 +551,7 @@ func TestLakectlLocal_commitProtetedBranch(t *testing.T) {
}

// Commit changes to branch
RunCmdAndVerifyFailureContainsText(t, Lakectl()+" local commit -m test"+dataDir, false, "cannot write to protected branch", vars)
RunCmdAndVerifyFailureContainsText(t, Lakectl()+" local commit -m test "+dataDir, false, "cannot write to protected branch", vars)
runCmd(t, Lakectl()+" branch-protect delete lakefs://"+repoName+"/ "+vars["BRANCH"], false, false, vars)

})
Expand Down

0 comments on commit e086c14

Please sign in to comment.