8000 Fix Git test for CI · yorickpeterse/clogs@c0cf2de · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Fix Git test for CI
Browse files Browse the repository at this point in the history
On CI we don't run on a branch directly but instead on a checked-out
commit.
  • Loading branch information
yorickpeterse committed Nov 9, 2023
1 parent 6d04e46 commit c0cf2de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/clogs/test_git.inko
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,9 @@ fn pub tests(t: mut Tests) {

t.test('Repository.run with a valid command') fn (t) {
let repo = Repository.new('.'.to_path)
let out = repo.run('branch', ['--no-color'])
let out = repo.run('log', ['-1'])

t.equal(
out.ok.map fn (i) { i.to_array.contains?('* main') },
Option.Some(true)
)
t.equal(out.ok.map fn (i) { i.count > 0 }, Option.Some(true))
}

t.test('Repository.run with an invalid command') fn (t) {
Expand Down

0 comments on commit c0cf2de

Please sign in to comment.
0