Skip to content

Commit 2064b8f

Browse files
meridionalCopilot
andauthored
Update internal/db/db_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 23aa16a commit 2064b8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/db/db_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestFetchRepoTags(t *testing.T) {
1616
resetTables(t, sqlDB)
1717

1818
allTags := []*db.RepoTag{
19-
// Ordered by Created DESC, which is how we expect it returned.
19+
// Ordered by Created ASC (ascending chronological order), which is how we expect it returned.
2020
{OrgRepoName: "foo/bar", TagName: "v0.0.1", ModulePath: "github.somecompany.net/foo/bar", Created: time.Now()},
2121
{OrgRepoName: "foo/bar", TagName: "v0.0.2", ModulePath: "github.somecompany.net/foo/bar", Created: time.Now().Add(time.Second)},
2222
{OrgRepoName: "foo/gaz", TagName: "v0.0.1", ModulePath: "github.somecompany.net/foo/gaz", Created: time.Now().Add(time.Minute)},

0 commit comments

Comments
 (0)