File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Examples:
9393 var orderBy string
9494 switch * orderByFlag {
9595 case "name" :
96- orderBy = "REPO_URI "
96+ orderBy = "REPOSITORY_NAME "
9797 case "created-at" :
9898 orderBy = "REPO_CREATED_AT"
9999 default :
Original file line number Diff line number Diff line change @@ -113,11 +113,11 @@ func TestSearchOutput(t *testing.T) {
113113 }
114114}
115115
116- var nMonthsAgoPattern = regexp .MustCompile (`\d+ months? ago` )
116+ var nTimeAgoPattern = regexp .MustCompile (`( \d+|N) ( months?|years?|time) ago` )
117117
118118// normalizeTimeAgo makes tests not depend on the current time.
119119func normalizeTimeAgo (s * string ) {
120- * s = nMonthsAgoPattern .ReplaceAllString (* s , "N months ago" )
120+ * s = nTimeAgoPattern .ReplaceAllString (* s , "N time ago" )
121121}
122122
123123func TestBuildVersionHasNewSearchInterface (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments