Remove obsolete renumber and stale commands, fix test
- Remove renumber.go: Hash IDs eliminated need for ID compaction - Remove stale.go: Executor/heartbeat tables were never implemented - Fix TestListCommand: duplicate dependency constraint violation - Update comments removing references to removed commands Amp-Thread-ID: https://ampcode.com/threads/T-3dcd8681-c7d3-4fe1-9750-b38279b56cdb Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -200,16 +200,7 @@ func TestListCommand(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("output formatted list digraph preset", func(t *testing.T) {
|
||||
// Add a dependency first
|
||||
dep := &types.Dependency{
|
||||
IssueID: h.issues[0].ID,
|
||||
DependsOnID: h.issues[1].ID,
|
||||
Type: types.DepBlocks,
|
||||
}
|
||||
if err := h.store.AddDependency(h.ctx, dep, "test-user"); err != nil {
|
||||
t.Fatalf("Failed to add dependency: %v", err)
|
||||
}
|
||||
|
||||
// Dependency already added in previous test, just use it
|
||||
err := outputFormattedList(h.ctx, h.store, h.issues, "digraph")
|
||||
if err != nil {
|
||||
t.Errorf("outputFormattedList with digraph format failed: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user