diff options
| author | Mark Probst <[email protected]> | 2015-03-04 11:38:39 -0800 |
|---|---|---|
| committer | Mark Probst <[email protected]> | 2015-03-04 15:52:55 -0800 |
| commit | db5fa66b483816614950b36bf204a0de681b705a (patch) | |
| tree | b4b3fe9ca815d53553d972a67794b9d4704fb6ee /cherrypick_test.go | |
| parent | c78b4d665e406af7e8cba608f65ac2171d3917b6 (diff) | |
State cleanup
Diffstat (limited to 'cherrypick_test.go')
| -rw-r--r-- | cherrypick_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cherrypick_test.go b/cherrypick_test.go index c867cf9..f06dbdd 100644 --- a/cherrypick_test.go +++ b/cherrypick_test.go @@ -70,4 +70,14 @@ func TestCherrypick(t *testing.T) { if state != RepositoryStateCherrypick { t.Fatal("Incorrect repository state: ", state) } + + err = repo.StateCleanup() + if err != nil { + t.Fatal(err) + } + + state = repo.State() + if state != RepositoryStateNone { + t.Fatal("Incorrect repository state: ", state) + } } |
