Skip to content

Commit 2db63c2

Browse files
committed
update test
1 parent 4da18c7 commit 2db63c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration/show_resolved_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ func TestShowResolved(t *testing.T) {
4444
output, exiterr, success = program("show-resolved")
4545
assertProgramResult(t, output, exiterr, success)
4646

47+
// sorting is ascending, so the most recently resolved tasks are shown last
48+
// (visible in terminal)
4749
tasks = unmarshalTaskArray(t, output)
48-
assert.Equal(t, tasks[0].Summary, "two", "two is the most-recently resolved")
50+
assert.Equal(t, tasks[0].Summary, "one", "one should be resolved")
4951

5052
var zeroValue time.Time
5153
assert.True(t, tasks[0].Resolved.After(zeroValue), "resolved time should not be 0 value for time.Time")

0 commit comments

Comments
 (0)