Skip to content

Commit

Permalink
refactored test
Browse files Browse the repository at this point in the history
  • Loading branch information
hollesse committed Apr 5, 2024
1 parent fdbe213 commit b9c023a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
config "github.com/remotemobprogramming/mob/v4/configuration"
"strconv"
"testing"
"time"
)

func TestExecuteKicksOffStatus(t *testing.T) {
Expand Down Expand Up @@ -45,10 +44,10 @@ func TestStatusDetectsWipBranches(t *testing.T) {
createFile(t, "test.txt", "contentIrrelevant")
next(configuration)
git("checkout", "master")
time.Sleep(2 * time.Second)

status(configuration)

assertOutputContains(t, output, "remote wip branches detected:\n - origin/mob-session")
assertOutputContains(t, output, " seconds ago)")
assertOutputContains(t, output, " second")
assertOutputContains(t, output, " ago)")
}

0 comments on commit b9c023a

Please sign in to comment.