@@ -42,23 +42,22 @@ func TestFormatSessionOutput(t *testing.T) {
4242 ID : "active-task-12345678" ,
4343 Title : "Active task" ,
4444 Status : felt .StatusActive ,
45- Priority : 2 ,
45+
4646 CreatedAt : now ,
4747 }
4848
4949 readyFelt := & felt.Felt {
5050 ID : "ready-task-87654321" ,
5151 Title : "Ready task" ,
5252 Status : felt .StatusOpen ,
53- Priority : 2 ,
53+
5454 CreatedAt : now ,
5555 }
5656
5757 closedFelt := & felt.Felt {
5858 ID : "closed-task-abcdef12" ,
5959 Title : "Closed task" ,
6060 Status : felt .StatusClosed ,
61- Priority : 2 ,
6261 CreatedAt : now .Add (- 2 * time .Hour ),
6362 ClosedAt : & closedTime ,
6463 Outcome : "Done with good results" ,
@@ -120,45 +119,6 @@ func TestFormatSessionOutput_Empty(t *testing.T) {
120119 }
121120}
122121
123- func TestFormatSessionOutput_PrioritySorting (t * testing.T ) {
124- now := time .Now ()
125-
126- // Create active fibers with different priorities
127- // Lower priority number = higher priority
128- lowPriorityActive := & felt.Felt {
129- ID : "low-priority-12345678" ,
130- Title : "Low priority active" ,
131- Status : felt .StatusActive ,
132- Priority : 3 ,
133- CreatedAt : now ,
134- }
135-
136- highPriorityActive := & felt.Felt {
137- ID : "high-priority-87654321" ,
138- Title : "High priority active" ,
139- Status : felt .StatusActive ,
140- Priority : 1 ,
141- CreatedAt : now .Add (time .Minute ), // Created later but higher priority
142- }
143-
144- felts := []* felt.Felt {lowPriorityActive , highPriorityActive }
145- g := felt .BuildGraph (felts )
146-
147- output := formatSessionOutput (felts , g )
148-
149- // High priority should appear before low priority
150- highIdx := strings .Index (output , "high-priority-87654321" )
151- lowIdx := strings .Index (output , "low-priority-12345678" )
152-
153- if highIdx < 0 || lowIdx < 0 {
154- t .Error ("both active fibers should appear in output" )
155- }
156-
157- if highIdx > lowIdx {
158- t .Error ("high priority fiber should appear before low priority fiber" )
159- }
160- }
161-
162122func TestFormatSessionOutput_BlockedReady (t * testing.T ) {
163123 now := time .Now ()
164124
@@ -167,15 +127,15 @@ func TestFormatSessionOutput_BlockedReady(t *testing.T) {
167127 ID : "blocker-task-12345678" ,
168128 Title : "Blocker" ,
169129 Status : felt .StatusOpen ,
170- Priority : 2 ,
130+
171131 CreatedAt : now ,
172132 }
173133
174134 blockedFelt := & felt.Felt {
175135 ID : "blocked-task-87654321" ,
176136 Title : "Blocked task" ,
177137 Status : felt .StatusOpen ,
178- Priority : 2 ,
138+
179139 DependsOn : felt.Dependencies {{ID : "blocker-task-12345678" }},
180140 CreatedAt : now .Add (time .Minute ),
181141 }
@@ -215,7 +175,6 @@ func TestFormatSessionOutput_UnblockedByClosedDep(t *testing.T) {
215175 ID : "closed-dep-12345678" ,
216176 Title : "Completed prereq" ,
217177 Status : felt .StatusClosed ,
218- Priority : 2 ,
219178 CreatedAt : now .Add (- 2 * time .Hour ),
220179 ClosedAt : & closedTime ,
221180 ModifiedAt : closedTime ,
@@ -226,7 +185,7 @@ func TestFormatSessionOutput_UnblockedByClosedDep(t *testing.T) {
226185 ID : "unblocked-task-87654321" ,
227186 Title : "Task unblocked by closed dep" ,
228187 Status : felt .StatusOpen ,
229- Priority : 2 ,
188+
230189 DependsOn : felt.Dependencies {{ID : "closed-dep-12345678" }},
231190 CreatedAt : now .Add (time .Minute ),
232191 }
@@ -261,7 +220,7 @@ func TestFormatSessionOutput_TagLabels(t *testing.T) {
261220 ID : "impl-auth-12345678" ,
262221 Title : "Implement auth" ,
263222 Status : felt .StatusActive ,
264- Priority : 2 ,
223+
265224 CreatedAt : now ,
266225 }
267226
@@ -270,7 +229,7 @@ func TestFormatSessionOutput_TagLabels(t *testing.T) {
270229 Title : "Design REST API" ,
271230 Status : felt .StatusOpen ,
272231 Tags : []string {"decision" },
273- Priority : 2 ,
232+
274233 CreatedAt : now ,
275234 }
276235
@@ -279,7 +238,7 @@ func TestFormatSessionOutput_TagLabels(t *testing.T) {
279238 Title : "Which library?" ,
280239 Status : felt .StatusOpen ,
281240 Tags : []string {"question" },
282- Priority : 2 ,
241+
283242 CreatedAt : now ,
284243 }
285244
0 commit comments